Hypertext Markup language 5 (HTML 5)
What's new and the different from HTML 4/XHTML 1.x :
Syntax :
- New parsing rules oriented towards flexible parsing and compatibility
- New elements – section, article, footer, audio, video, progress, nav, meter, time, aside, canvas, datagrid
- New types of form controls – dates and times, email, url, search
- New attributes – ping (on a and area), charset (on meta), async (on script), data-x (where x is a user supplied custom attribute name.)
- Global attributes (that can be applied for every element) – id, tabindex, hidden
- Deprecated elements dropped – center, font, strike
HTML 5 defines an HTML syntax that is compatible with HTML 4 and XHTML 1 documents published on the Web, but is not compatible with the more esoteric SGML features of HTML 4, such as the NET syntax (i.e. <em/content/). Documents using the HTML syntax must be served with the text/html media type.
HTML 5 also defines detailed parsing rules (including "error handling") for this syntax which are largely compatible with popular implementations. User agents must use these rules for resources that have the text/html media type. Here is an example document that conforms to the HTML syntax:
The other syntax that can be used for HTML 5 is XML. This syntax is compatible with XHTML 1 documents and implementations. Documents using this syntax need to be served with an XML media type and elements need to be put in the XHTML namespace namespace following the rules set forth by the XML specifications. [XML]HTML Code:<!doctype html> <html> <head> <meta charset="UTF-8"> <title>Example document</title> </head> <body> <p>Example paragraph</p> </body> </html>
Below is an example document that conforms to the XML syntax of HTML 5. Note that XML documents must have an XML media type such as application/xhtml+xml or application/xml.
Browsers Support :Code:<?xml version="1.0" encoding="UTF-8"?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Example document</title> </head> <body> <p>Example paragraph</p> </body> </html>
All our sites have errors :
- Mozilla Firefox 3.5 is so far (August 2009) the only non-experimental browser to support Ogg formats. Such support is planned for Google Chrome, and has been available in experimental builds of Opera since 2007.
- Opera Software and Mozilla have been advocates for including the Ogg formats into the HTML standard.
All of our sites have HTML 5 errors and we should start design our style more "professionally" with HTML 5
Learn More :
HTML 5
HTML 5
HTML5 differences from HTML4
Comparison of layout engines (HTML 5) - Wikipedia, the free encyclopedia



LinkBack URL
About LinkBacks





Reply With Quote