I noticed in the HTML5 documentation that the xmlns
attribute on the root element html
is still allowed. This attribute, according to my study, assigns a "unique qualified name" to the element associating with the namespace (attribute value), not only for it, but for all its other child elements that do not have another attribute declaration xmlns
different. It does not matter whether the attribute has a prefix present ( xmlns:prefixo="url"
) or not ( xmlns="url"
). Note that the address used to identify the namespace is not used by the parser to fetch information. The sole purpose is to give the namespace a "unique qualified name". Ufa! Question: Should we still use prefixes in HTML5 tags? Is there a real example of using HTML5? It seems to me that it still exists because of the natural process of transition between languages, otherwise it would not even be there, is it? Thank you!
<!DOCTYPE html>
<html xmlns:book="http://www.book.com">
<book:head>
...
</book:head>
<book:body>
<book:h1>Title</book:h1>
...
</book:body>
</html>