background preloader

Semantics

Semantics
You are here: Home Dive Into HTML5 Diving In This chapter will take an HTML page that has absolutely nothing wrong with it, and improve it. Parts of it will become shorter. Parts will become longer. All of it will become more semantic. Here is the page in question. The Doctype From the top: This is called the “doctype.” Microsoft came up with a novel solution. This idea spread like wildfire, and soon all major browsers had two modes: “quirks mode” and “standards mode.” In his seminal work, Activating Browser Modes with Doctype, Henri Sivonen summarizes the different modes: Quirks Mode In the Quirks mode, browsers violate contemporary Web format specifications in order to avoid “breaking” pages authored according to practices that were prevalent in the late 1990s. (You should read the rest of Henri’s article, because I’m simplifying immensely here. Now then. That happens to be one of the 15 doctypes that trigger “standards mode” in all modern browsers. This is the HTML5 doctype: That’s it. <! Related:  HTML5

Dictionary Lookups in JavaScript I’ve been working on a browser-based word game, naturally written in JavaScript, and have been encountering some interesting technical challenges along the way. I’ve written up my thought process here for others to learn from (note that most of this happened over the course of a month, or so). I’ve often found that while a final solution to a problem may be rather elegant and “make perfect sense” when looking at it – it’s only through the result of much trial and error that the solution was arrived upon. To start, in my game, the user is frequently re-arranging letters – causing the game to look up words in a dictionary to see if they are valid, or not. I’ve taken multiple passes at implementing a solution to this problem, ranging all the way from “I don’t care about performance, I just want it to work” all the way up to “thousands of people could be playing simultaneously, how do I scale?” Server-Side Solution The first pass was stupid simple. Thus you would call the PHP script like so:

85 amazing HTML examples Some of these sites use the latest technologies to push the boundaries of what's possible on the web; others use traditional design principles to build beautiful, usable sites. Whether you're using simple HTML or diving into WebGL and 3D CSS, you'll find something here to inspire you. We also have a brilliant selection of inspirational examples of CSS as well as some great CSS and JavaScript tutorials to power up your skills. 01. Appy Fizz is a sparkling drink that describes itself as 'the champagne of fruit drinks'. The design is an interesting mix of super-flat and implied three-dimensional elements. Art and its space in commercial industries is a theme Sagmeister & Walsh play with throughout their work, and it's a topic I'm interested in. 02. Made by Few is an annual web conference hosted by Few, a design and development agency in Arkansas. As I explored the site, I found more surprises. 03. Allbirds is a new sports shoe brand from the land of 29,221,344 sheep. 04. 05. 06. 07. 08.

Build a Neat HTML5 Powered Contact Form In this tutorial, we are going to learn how to create a swanky HTML5 AJAX powered contact form. The form will use some of the new HTML5 input elements and attributes, and will be validated using the browser's built-in form validation. We will use jQuery and Modernizr to help out with the older browsers, and PHP on the server side to validate the input. Step 1: Getting Started To begin, we need to setup our directory and files. For more information on the HTML5 boilerplate check out this guide on Nettuts+. Once downloaded and unpacked, delete everything but index.html and the css and js folders. That's all we need to get started! Step 2: The Form Open index.html, and remove everything within the #container element. This is all the HTML we will need for our form. ul#errors and p#success will be holders for our error and success messages. In HTML5, we do this by adding the 'required' attribute. Enquiry is a standard select element, and message is a typical textarea -- nothing new here.

30 amazing examples of WebGL in action WebGL is a JavaScript API based on the well-known OpenGL 3D graphics standard, and it gives JavaScript plugin-free access to the graphics hardware, via the HTML5 canvas element. It's thanks to WebGL that we can include real-time 3D graphics in web pages. Apple are supporting the standard too, so we can (hopefully!) expect to see it cropping up in Safari on Macs, iPhones and iPads sometime (though probably not soon) - and Opera are testing their own version, so the only holdout is Microsoft. So sit back, crank up your latest browser, and check out these demos - if you think you can do better, go for it: there are some hints and tips on how at the end. 01. Multicoloured lighting and an interesting application of light and shade are put to good effect in this dramatic, slow-motion avalanche of macaroni. 02. Just a Reflector is an interactive music video created by Google Data Arts Team and Unit 9 for Arcade Fire. 03. 04. 05. 06. 07. 08. Next page: 6 more awesome examples of WebGL

HTML5-Handbuch - Webkompetenz Wenn Sie den Inhalt der Site diskutieren möchten - dies ist der leichteste Weg dies zu tun. Klicken Sie hier um den Inhalt der Seite zu ändern. Klicken Sie hier um auf das Ändern von einzelnen Sektionen hin- und herzuschalten (wenn möglich). Achten Sie auf die Überschriften ob daneben ein "Bearbeiten" Link erscheint. Inhalt hinzufügen ohne den ganzen Seiteninhalt zu editieren Prüfen Sie, wie Sie diese Seite sich in der Vergangenheit entwickelt hat. Betrachten und Verwalten von Datei-Anhängen für diese Seite. Einige nützliche Werkzeuge zum Verwalten Ihrer Site Ändern des Namens der Seite (auch URL Adresse, eventuell die Kategorie). Ansicht des Seiten-Quelltextes ohne Änderung. Ansicht /Einsetzen "Eltern" Seite (benutzt um "Breadcrumbs" und Layout-Struktur zu erstellen). Benachrichtigen Sie die Administratoren, wenn Sie anstößige Inhalte auf dieser Seite finden. Einiges funktioniert nicht wie erwartet? Allgemeine Wikidot.com-Dokumentation und Hilfebereich. Wikdiot.com - Datenschutz

30 Inspiring WebGL (Chrome) Experiments Behold, for a great tool with great promises is coming to your eyes. It is fast and smooth. It renders 3D, and with integration it animates, guess what it is? In this showcase, we don’t want to show you the regular things. More related posts: You are strongly recommended to view these demos using the latest version of Developer version of Google Chrome. 3 Dreams of Black Authored by Google Data Arts Team, 3 Dreams of Black brings you into 3 dream worlds constructed through a combination of rich 2D drawings and animations interwoven with interactive 3D sequences. Animated Volume Particles This one is really artistic – animated animals constructed by 3D particles using float textures and frame buffer objects. Aquarium Simulate an underwater environment? Azathioprine Probably the most epic WebGL demo, enough said. Attractors Trip If you wanna experience the 3D this is the best demo for you, also get meditated with the immense beauty of WebGL-generated graphics using Martin’s Hopalong formula.

HTML5 sectioning elements, headings, and document outlines A subject I have returned to a couple of times is how to use headings to make good document outlines in HTML documents. See Headings and document structure conclusions for a summary of my reasoning. Recently I’ve been taking a closer look at how HTML5 changes the way document outlines are created. I’m not entirely sure that I have understood the specification fully, but if I have, I think the new outline algorithm requires you to think carefully when using the new sectioning elements (article, section, nav, and aside) if you also want a coherent document outline without untitled sections. The HTML 4.01 outline To explain what I mean, let’s look at some examples. <body><div id="header">Site title etc. That creates the following document outline (you can use the Web Developer extension to check document outlines): Article title Article sub-heading Article sub-sub-heading Sidebar heading Sidebar sub-heading Footer heading The HTML5 outline <body><header> Site title etc. Say what?

20 Impressive Examples for Learning WebGL with Three.js Martin Angelov By now you have probably heard about Three.js – a library which makes working with 3D in the browser easy. With it, you can create the building blocks of 3D modeling – cameras, meshes, lights and more, and apply animations on them. Three.js can draw a scene using a Canvas element, SVG, CSS3D or WebGL. In this article, you will find a collection of demos, tutorials and resources that will inspire you to learn more about the library. Experiments and Demos The impressive demos that you see below are made with the Three.js library and WebGL as a renderer. 1. Nucleal is a WebGL experiment, powered by the Three.js. Nucleal 2. Lights is an amazing visual experience, powered by Three.js, which syncrhonizes colors and shapes to music. Lights 3. “Just A Reflektor” is an interactive film that lets you cast a virtual projection on your computer screen by holding up your mobile device in front of your computer’s webcam. Just A Reflektor 4. Arms Globe 5. Google Street View Hyperlapse 6. 7. 8.

dygraphs JavaScript Visualization Library

Related: