patternhtmlModerate
Semantic HTML5 and proper use of tags
Viewed 0 times
propertagshtml5andsemanticuse
Problem
I'm trying to develop a base for a blog using some of the new tags introduced in HTML5 and I want to not only make sure I'm using them correctly, but my code is also semantic.
Here is just the 'sample' document.
Can anyone see any misuse of the new tags or any better - cleaner way to write this?
Here is just the 'sample' document.
page title
Blog title
Blog tagline goes here
Top Link
Top Link
Top Link
commenting out so the answers still make sense -->
sidebar link
sidebar link
sidebar link
Article Header
Section header
Article section content
Section header
Article section content
Section header
Article section content
posted by user on January 1st, 2012. 12:00pm
Article Header
Section header
Article section content
posted by user on January 1st, 2012. 12:00pm
Article Header
Section header
Article section content
posted by user on January 1st, 2012. 12:00pm
Don't wanna make these guys look crazy -->
Page footer.
Can anyone see any misuse of the new tags or any better - cleaner way to write this?
Solution
Quick review:
Edit after your comment:
Related picture:
- Remove this damn `
, styling is for CSS.
- In each
, you better have an:-)
- You can add rel="author"
to yourlink on the author. Even better, you can useThe author's name(Google will recognize this as a "rich snippet" and show your face in google results. Take a look at http://schema.org for more information). Rich snippets are a whole other topic, so I'll stop talking about it :)
Edit after your comment:
- Each article should contain an
for its article sections.
- Each article should have its title in an
. Yes, even if there are multiplein the main page. If there is just the titles on the main page (no article's text), feel free to use.
- The
on the frontpage is tolerated, not on the blog pages. Feel free to use it or not on the frontpage, but make sure that each blog page has the title of the post as an`, not the site's name.
Related picture:
Context
StackExchange Code Review Q#13073, answer score: 13
Revisions (0)
No revisions yet.