What's new in HTML 5
Differences between HTML 5 and earlier versions
In the 2000 W3C standard version of HTML (and HTML version 5) the
<html> tag includes an xmlns attribute,
which specifies the namespace of the HTML elements in the document.
Here is how the <html> tag should appear:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
...
</html>
In addition to being required by the 2000 W3C standard, specifying the namespace for the
elements in the document using the xmlns attribute allows
the documents, or a subset of nodes in the document, to be aggregated with other content.
If the namespace for the elements is not specified, a reader of a combined documents created by
an aggregator will be unable to distinguish the elements in one namespace from those in another.
This is the biggest limitation of
RSS
0.92 version 2.0
although
RSS
version 1.0
does use namespaces to solve the problem.
The following attributes should not be coded on the <html> tag
because they either have been deprecated or were never officially supported:
-
version - use the
xmlns attribute described above instead
back to top
|