What Beautiful HTML Code Looks Like
css-tricks.com
css-tricks.com
This is the same as in HTML4. However, due to the widespread attempts to use XHTML1, there are a significant number of pages using the trailing slash. Because of this, the trailing slash syntax has been permitted on void elements in HTML in order to ease migration from XHTML1 to HTML5. ( http://wiki.whatwg.org/wiki/FAQ#Should_I_close_empty_element... )
If I’m careful with the syntax I use in my HTML document, can I process it with an XML parser?
No, HTML and XML have many significant differences, particularly parsing requirements, and you cannot process one using tools designed for the other. However, since HTML5 is defined in terms of the DOM, in most cases there are both HTML and XHTML serializations available that can represent the same document. There are, however, a few differences explained later that make it impossible to represent some HTML documents accurately as XHTML and vice versa.
But, the whatwg who have many more people and spend many more hours on this tell me "it's not that simple, it won't work" I tend to have to take that on face value - I can't afford to write 40 pages using XHTML style void tags and then have an FF upgrade baulk because some nuance of HTML5 parsing spews at my tags.
FWIW.
The kicker with going the XHTML path, though, is the expectation that the document will be served with a particular content-type header meant for XHTML/XML documents. This is no different than what's (supposedly) required for XHTML documents right now, yet very few people use the correct header (even people who chide others for not using XHTML).
<ul class="people"> maybe.