What are the components of a blog post?
- The title of the post.
- The name of the author.
- The date on which the post was published.
- An excerpt from the content.
- The post body itself.
- The tags associated with the post.
- The categories into which the post has been placed.
I’m sure that there are more, but this is as far as I got… so the big question is how do I mark this lot up in order to extract even more meaning?
The two text fields, both being content; the excerpt and post body; don’t necessarily need any container since they’re build from paragraphs. However using <div> would give me a lot more control over the CSS, but is this adding unnecessary mark-up?
I thought about creating an unordered list out of the post metadata; author, date, tags and categories. It’s all very well describing the whole lot using the ‘metadata’ label, but that’s not very helpful because they don’t belong together.
I figure that the tags and categories are easy since they’re obviously lists, and unordered ones at that. But the title, author and date are a different matter. Including them to a list is definitely adding extra mark—up, so I haven’t.
This is definitely an ongoing problem.