Yesterday W3C has published document named HTML5 differences from HTML4. Interesting here is that the standard provides two syntax variants HTML5 and XHTML5:
- HTML5 - is compatible with HTML4 and XHTML1 documents published on the web, but is not compatible with the more esoteric SGML features of HTML4. Documents using this syntax need to be served with the
text/htmlMIME type. HTML5 also defines detailed parsing rules (including “error handling”) for this syntax which is largely compatible with popular implementations. User agents will follow these rules for resources that have thetext/htmlMIME type. - XHTML5 is compatible with XML and correct XHTML1 documents. Documents using this syntax need to be served with an XML MIME type and elements need to be put in the
http://www.w3.org/1999/xhtmlnamespace following the rules set forth by the XML specification.
At first the new version handles more strictly some constructs e.g. the div and li content, so that these elements can have only blog or in line content but no both. Furthermore guys and ladies of W3C are now very careful and try to create a true markup language so that no information is provided how the elements should be represented in browser, for example the following:
- The
belement now represents a span of text to be stylistically offset from the normal prose without conveying any extra importance, such as key words in a document abstract, product names in a review, or other spans of text whose typical typographic presentation is emboldened. - The
hrelement now represents a paragraph-level thematic break. - The
ielement now represents a span of text in an alternate voice or mood, or otherwise offset from the normal prose, such as a taxonomic designation, a technical term, an idiomatic phrase from another language, a thought, a ship name, or some other prose whose typical typographic presentation is italicized. Usage varies widely by language.
And of cause there are Elements and Attributes that will no longer Supported:
- Elements
acronym,applet(has been obsoleted in favor ofobject),basefont,big,center,dir,font,frame,frameset,isindex,noframes,noscript(only dropped in XHTML5),s,strike,tt,u. - The
revandcharsetattributes onlinkanda. - The
targetattribute onlink. - The
nohrefattribute onarea. - The
profileattribute onhead. - The
versionattribute onhtml. - The
nameattribute onmap(useidinstead). - The
schemeattribute onmeta. - The
archive,classid,codetype,declareandstandbyattributes onobject. - The
valuetypeattribute onparam. - The
charsetattribute onscript. - The
summaryattribute ontable. - The
headers,axisandabbrattributes ontdandth.
In addition, HTML5 has none of the presentational attributes that were in HTML4 (including cellpadding and cellspacing).
In my humble opinion with HTML5 we become serious upgrade for modern needs.