Write HTML, the HTML Way (Not the XHTML Way)
Ah, XHTML – I’ll raise your 1.0
doctype with a 1.1… When HTML 5 came along sanity, or rather, pragmatism was restored. Jens is right when he observes we still exhibit XHTML habits – I couldn’t use anything but lowercase tags and it would feel very weird not closing a
p. On the other hand, my hex codes are always uppercase and I was more than happy to drop
ps instils discipline, or at least the feeling of discipline and order.
<input required readonly> is indeed tersely beautiful. Because HTML isn’t XHTML we get the chance to explore these different syntaxes knowing we’re not going to break anything.
Add a comment
Comments and replies to this post from other sites and services, such as micro.blog and Twitter.
@leonp No more " />" for me. I haven’t been consistent about it. Usually I try to avoid it but at times my resolve weakens. Thanks, interesting post.
@artkavanagh I used to find the order of
> unnatural, so was more than happy to use