4. How Did HTML5 Get Started?
HTML5 is a cooperation between the …
World Wide Web Consortium (W3C)
Web Hypertext Application Technology Working
Group (WHATWG).
*WHATWG (2004): Apple, Mozilla, Opera.
5. Some rules for HTML5 were
established:
New features should be based on HTML, CSS,
DOM, and JavaScript
Reduce the need for external plugins (like Flash)
Better error handling
More markup to replace scripting
HTML5 should be device independent
The development process should be visible to the
public
17. HTML5 Geolocation
function showPosition(position)
{
var latlon=position.coords.latitude+","+position.coords.longitude;
var
img_url="http://maps.googleapis.com/maps/api/staticmap?center="
+latlon+"&zoom=14&size=400x300&sensor=false";
document.getElementById("mapholder").innerHTML="<img
src='"+img_url+"'>";
}
18. HTML5 Input Types
Color
Datetime
Time
Date
Email
Number
Range
Search
Tell
19. HTML5 New Form Attributes
autocomplete
autofocus
form
formaction
formenctype
formmethod
formnovalidate
formtarget
height and width
list
min and max
multiple
pattern (regexp)
placeholder
required
step