Saturday, November 19, 2011

HTML5 value semantics: a pragmatic perspective.

In recent weeks there has been a healthy and lively debate about value semantics in the HTML5 spec. Divya Manian on her "Our Pointless Pursuit Of Semantic Value" opinion article decries and points out the problems that can arise if we give HTML5 semantics too much importance. A bit later, Jeremy Keith's riposte to Divya's article brought forth the reasons why semantics are important in HTML5.

I will begin by saying that, in my opinion, HTML5 value semantics are purely academic. I don't mean that in a derogatory manner, but rather, the people who ultimately matter (i.e. the end user) could not care less about how semantically correct the markup behind a web page is. Will a semantically correct HTML5 page make you a better designer or developer? Probably not. Will a semantically correct HTML5 pages bring more views to your website? No, by itself it won't. Will your end-users have an improved experience by having semantically correct HTML5 page(s)? In my opinion, no. Will your customer/client approve your work because it is semantically correct or because it looks good and works well? I think we know the answer.

Also to bear in mind is that these semantics are shallow shells. That is to say, behind the scenes, these semantic tags are converted to spans, divs, h1s or other "primitive" html elements by the rendering engine and once painted on the page, they are invisible to the user. So, in many ways, I have to agree with Divya: time spent on figuring out the correct semantics is pointless. Not to say that you shouldn't use them, but they should not be an excuse or an obstacle to your creativity. Semantic markup shouldn't be the basis for design decisions and certainly shouldn't be a reason to hold a meeting about.

In short, life's too short; don't sweat the markup semantics.

 

No comments:

Post a Comment