Because I forget stuff. Part of norcimo.com
Note: It appears you must have reached this page by a deep level URL. In general this site is currently down and unmaintained. See here
Originally posted October 9 2004 at 01:10 under Web. 0 Comments. Trackbacks Disabled.
Just thinking aloud here really. I found myself earlier today writing a web page which included various time periods (in this case a range of years but I’m thinking in more general terms than that). Now I wanted to style the time differently to the surrounding content, so needed a hook for my styles. Of course I immediatly began wondering what would be the best hook to use; what would be semantically correct in this case (surely the fact that this is a date is semantic information). And I couldn’t come up with anything. There isn’t really a semantic tag in HTML to deal with time in anyway. Which is a pity. In the end its surrounded in a span with class=”period” but I wasn’t very happy at putting what I felt to be semantic information into the styling. I’m a little too tired, it seems, to construct a good Google search to investigate this properly to see what if others have come up with some thoughts about this. I recall seeing some discussion in various places about marking up a calendar using a table or sequence of ordered lists but I don’t want a whole calendar. I know Tantek has noted there’s no XHTML markup for time. There’s TimeML, a Markup Language for Temporal and Event Expressions
but that’s much too complex for what I want. What I really wish is that there were a date tag which took something like a format attribute so I could define how the date or period was formated. Ah well. End of thinking aloud.
Name and email address are required. Email address is never shown. If you enter a URL your name will be linked to it (this and other links will have the rel attribute set to contain nofollow). Markup allowed: <a href="" title="" rel=""> <em> <strong> <abbr title=""> <acronym title=""> <p> <br />. Anything else is stripped; please be valid. Single linebreaks automatically convert to <br />, double to <p>'s. Additionally anything that looks like a bare URL should get automagically linked. Many acronyms and abbreviations are also automagically handled.
Please note this blog's comment policy
Trackback URL: http://www.norcimo.com/MT/mt-tb.cgi/120
© Ian Scott. Powered by Movable Type 3.2. This blog uses valid XHTML 1.0 Strict and valid CSS. All times are local UK time. For further details see the IMS_Blog about page.. All my feeds in one.