How do I make my weblog code semantically correct?
July 8, 2004 5:00 AM
Subscribe
Semantically correct code in a weblog: what happens when your focus is on posts' titles (rather than on posts' timestamps) with regards to headers (h1, h2) classes? [more inside]
(My first attempt at going with semantically correct code, I don't know if what I'm thinking makes perfect sense.)
Here's my question: a post's timestamp is higher in the hierarchy than a post's title, because the flow goes like: "year,month,day->posts in that day" (am I right on that one?).
So, you would assign h1 to the date, and h2 to the title.
What happens if you want the posts' titles to be of greater visibility than their respective dates (imagine a post title in big bold letters, and the date underneath in small letters)?
Do you still assign h1 to the date, and h2 to the post, and just set h2's font size to be bigger than h1's, or you go the other way (assign h1 to the post title, and h2 to the date)?
Does this question make sense? Am I worrying for nothing?
posted by kchristidis to computers & internet (7 comments total)
Do you consider the date to be more important than the title? Then that get's a higher hx. Some consider the timestamp to be more of a metadata issue and give it lower priority. What I often see on well-coded blogs is a hierarchy along these lines:
h1 - site name
h2 - site tagline
h3 - navigation
h4 - post title
h5 - post timestamp
h6 - $foo
Think about how you would like it to be presented if it were plain text; that might get you more clear on the architecture before you tackle the design.
posted by mimi at 5:28 AM on July 8, 2004