HTML är svårt
Conversely, it’s pretty easy to write bad HTML, because for most developers there are no consequences. If you write some bad Javascript, your application will probably crash and you or your users will get a horrible error message. It’s like a flashing light above your head telling the world you’ve done something bad. At the very least you’ll feel like a prize chump. HTML fails silently. Write bad HTML and maybe it means someone who doesn’t browse the web in exactly the same way as you do doesn’t get access to the information they need. But maybe you still get your pay rise and bonus.
So it’s frustrating to see the importance of learning HTML dismissed time and time again. Sorry to end on a bad note, but that’s where we’re at right now.
Content-Type: application/xhtml+xml
försökte införa detta på 00-talet, faktiskt, under XHTML Strict-eran. Man visade då en Yellow screen of Death om HTML-koden inte var korrekt. Det floppade.
Det hade ställt högre krav på utvecklare, men också på glada hobbyister och nyfikna amatörer. I dagens läge sköter webbläsare och skärmläsare en hel del förlåtande åtgärder för att bristäfllig HTML ändå ska låta användaren ta del av innehållet.
Det är en bra sak att HTML inte är drakonisk, men det är inte utan problem.