Ben Ward

Semantic Markup

.

It appears that in my eagerness to jump on XHTML, I’d completely overlooked the meaning of mark-up.

It’s a well ignored fact that HTML tags have meaning, rather than just being presentational aids. This is especially true of XML based mark-up, which by definition exists to describe anything.

Matthew Thomas puts this straight effectively, and offers a really rather timely reminder that there’s more to XHTML than what gets rendered and that <em> is not a replacement for <i> at all.

In fact, at a time when Microsoft are about to move to standard XHTML support with ASP.NET 2.0 (and an inevitable implication that IE will follow, perhaps?), people really should take note of how to use modern mark-up properly and keep the web ticking over.

Comments

Previously, I hosted responses and commentary from readers directly on this site, but have decided not to any more. All previous comments and pingbacks are included here, but to post further responses, please refer me to a post on your own blog or other network. See instructions and recommendations of ways to do this.

  1. The point about emphasis is a really quite interesting, in a webdev sort of way!

    So often ‘em’ is said to be replacement for ‘i’, and is usually rendered as such. So too with ‘strong’ and ‘b’. However, look in the specs and there is no mention at all of bold or italics. ‘em’ is merely deemed emphasis, and ‘strong’ for greater/stronger emphasis. Perhaps we’d all better add:

    strong { font-weight:bold }

    and such? :)

  2. Ben

    As a general rule, most browsers simply render ‘em’ with italics and ‘strong’ with bold by default, another possible cause for the assumption.

    Something about the newer tags seemed “better”, and therefore naturally assume it to be a replacement. Of course, the actual implications of trying to replace two of the most common tags on the Inter-Web (bar ‘html’, ‘head’ and ‘body’, natch) is rather laughable.

    I think the interesting point that comes out of it is that this all fits into the move away from HTML as visual mark-up. XHTML is about describing documents, not presenting them. The net result is – hopefully – documents that are multi-format and accessible to everything. The fact that XHTML and WAP2.0 are, to my knowledge, the same thing demonstrates very nicely the scope of the format. A shame that the W3C see fit to produce multiple standards (such as XHTML/Basic), which rather renders the idea of having a single standard less useful.

  3. mpt
    I think the interesting point that comes out of it is that this all fits into the move away from HTML as visual mark-up.

    One of the things I was trying to demonstrate is that that move away can never entirely work. First, a general-purpose markup language like (X)HTML can’t possibly include all the semantic reasons people want to use bold or italics. Second, most people don’t think semantically and you can’t make them to. And third, requiring such people to guess the correct element (or just substituting all their &lt;i&gt;s for &lt;em&gt;s) does more semantic harm than good.

  4. Ben

    I’m now very, very impressed with this Blogging technology ;) Thanks very much for commenting!

    I think the idea of pushing out to the boundaries of current web technology is a task that’s scaled beyond the scope of most web developers, certainly those of us acting alone. The additional work required to carefully design and implement the semantic elements of the design would be gigantic. What if you were then to factor in other fringe web technologies: CSS speech description, multi-lingual considerations, even just producing a second stylesheet for mobile devices is a massive amount of effort that would certainly be beyond me working alone.

    The only people with the resources for such a size of development are big business, but from a position of working in the Web Team of one right now (Fujitsu-Siemens Computers), I can confidently say that we’re lucky to have a guy working on XHTML/CSS standards compliance for all our version 2 sites, the idea being able to employ/spare someone to work on semantic mark-up would be some kind of magical luxury.

    All of these are obviously completely independent of each other, I don’t mean to imply that implementing careful semantic mark-up must include implementing fringe CSS as well, simply that the scale of Hypertext has reached a size where we’re forced by time to be selective.

    Semantic mark-up however, is something I’m rather sold on. Thank you :)

You can file issues or provide corrections: View Source on Github. Contributor credits.