We feel there are coherent relations between the 'beauty of our codes' and the 'layout of our UI designs', and we do photography with as much enthusiasm as coding & designing.
The advantage of defining HTML 5 in terms of the DOM is that the language itself can be defined independently of the syntax. There are primarily two syntaxes that can be used to represent HTML documents - the HTML serialisation (HTML 5) and the XML serialisation (XHTML 5).