|What exactly is "structured semantic markup"?|
| 6:13 pm on Apr 28, 2006 (gmt 0)|
I'm drafting an accessibility statement for one of my client's sites and so I've been checking out a few other sites to see what they say.
Several sites state that they use XHTML Transitional or Strict and "structured semantic markup". I've been trying to find out exactly what is meant by "structured semantic markup" but it seems to be one of those rather vague terms that people use and I can't find a definition.
It sounds like a great phrase for impressing clients :-) and I'd love to use it but how can I tell if my code is "structured semantic markup"?
| 8:30 pm on Apr 28, 2006 (gmt 0)|
Well, first off, chances are if you don't know why you'd use XHTML, then your site doesn't need it. Or so this thread says:
Regardless of whether you use XHTML or HTML as your DOCTYPE, I think it's pretty much a given that totally semantic and well-structured markup follows the Strict version of whatever DTD you choose. Any site using XHTML Transitional is thoroughly confused if you ask me.
As far as semantic markup, perhaps someone else will come along with a WikiPedia-esque answer, but I would tell you that it's basically a matter of using elements as they were meant to be used. If you need a large space between paragraphs, you don't add
You simply create the correct margin for the previous or next paragraph with CSS. This makes more sense to everyone- SE's, rendering engines(usually), screen readers, normal folk...
You use <table>s when you're presenting information that ought to be laid out in rows and columns... you don't use <table>s for a complex layout that has absolutely no use for rows and columns and the default behavior of the <table> element.
That kind of thing. The way I think of it is, the more well-structured and semantically correct a web site is, the easier it would be for a layman to sit down and read your source code and easily understand what your page is saying if the only help you gave him was defining what HTML tags mean.
| 9:45 pm on Apr 28, 2006 (gmt 0)|
Thanks Don...that's what I hoped the answer would be, and my code follows all the guidelines you mentioned so I feel quite justified in saying it's structured semantic markup.
BTW I use Strict wherever I can and only resort to Transitional when I want to do something like have a link open in a new window.
Thanks for the reference to the post on XHTML - looks like that's opened another can of worms for me!
| 6:33 pm on May 2, 2006 (gmt 0)|
[quote Don_Hoagie]Any site using XHTML Transitional is thoroughly confused if you ask me.
My site vlidates for "strict" except for one item which appeares on every page. It is used for instructional purposes to show how to exit and return to frames on a per-page basis. Doing that requires use of the "target" attribute which will not validate in the "strict" DTD, so I use the "transitional" DTD. I'd love to hear of a way to do it in the "strict" mode.
| 1:51 pm on May 6, 2006 (gmt 0)|
Way, way back in time...
HTML is a presentational-structure markup language, with a bunch of formatting markup stuck on. All its "semantics" (as in syntax) are for presentational structure and formatting. It is not a semantic markup language, because it lacks the ability to encode "semantics" (as in meaning).
For example, HTML can express the word "bridge" in a heading, a paragraph, a blockquote etc. It cannot express whether the word "bridge" is referring to a physical structure over a gap, a card game or a denture.
To use semantic markup requires the use of a semantic markup language like the W3C's RDF, which together with OWL is the foundation of the W3C's Semantic Web [w3.org].
So I would suggest the use of the term "structured semantic markup" is wrong, or at best redundant. The most appropriate phrase to use is "structural markup" or "structured markup", and this refers to using HTML to markup presentational structure without embedding any additional formatting instructions.