When XHTML came around I moved to following all the necessary rules like everybody, closing empty tags:
<meta />
<br />
<img />
always using lowercase, always putting attribute values in quotes, avoiding attribute minimisation:
checked="checked"
...and so on.
Now, since the move to HTML5 as I understand it you can still utilise those same standards within HTML5, as there could be XHTML within HTML4 or XHTML within HTML5, basically meaning you could still utilise XHTML's rules within HTML5 - it's not one or the other.
Now, the reason I am talking about this is because I started wondering about the xmlns
attribute of the html
element that I have been using, that being: xmlns="http://www.w3.org/1999/xhtml"
.
Now as I understand it this became a requirement with the introduction of XHTML but I have continued using it within HTML5.
So my question is, if I wanted to keep using XHTML's standards within HTML5 do I have to continue inserting this attribute into my html
element?
...and if so, I would assume if I coded inavlid XHTML such as <br>
then it would become invalid just like it previously would?