Semantic HTML
In my last lens I introduced the idea of Semantic HTML (POSH). For those that missed my expanation, Semantic HTML is the use of tags/elements that have a specific meaning to describe the content and also what that content is for. We want to use HTML to describe the structure of the document, but not for describing the presentation. We leave presentation to CSS.
How do we use HTML to semantically describe the structure of the document? We do this by using common sense and the same basic markup that we used when first learning HTML (except without the font and other deprecated tags).
Here's some basics. For the documents heading we'll want to use a heading element. The first heading in the document will use the <H1> element. Search engines also regard <H1> as important when indexing your pages. If we include paragraphs in our document, we should use <P> elements instead of <BR>'s. When we include a quote the correct element to describe this would be one of, <blockquote>, <q>, or <cite> element. If we include a list of items then we'll be representing this list using <UL> or <OL> tags. This all sounds like common sense and mostly it is. We're using elements that provide meaning to the content. This creates a solid, semantically correct HTML structure.
These basic rules also work the other way around. We shouldn't be using header elements to represent content that isn't a header. Some people may use elements like this to increase the font size, but that's not semantically correct.
Give consideration to a variety of elements. There are loads of elements that very few people use, such as <label>, <acronym> and <address>. Finally, validate your markup.
Contents at a Glance
Semantic HTML - Further reading.
Feel free to add your own links/resources.
Magnon International
Magnon International is the international business more...1 point
Web Design Lancashire / Android Apps Developer / web development blackburn/Web Development Manchester | Ipad Development Blackburn
Web design Blackburn, Lancashire , We specialise i more...1 point
Writing Semantic HTML - The Future of the Web
JavaScript, Ajax, CSS, HTML and anything else of i more...0 points
Semantic (X)HTML is easy at Spindrop
ideas are cheap0 points
Semantic HTML
0 points
Java Applet
Java Applet usually operates at a very similar spe more...0 points
Web Design Calgary
Redline is a team of Calgary web design and online more...0 points
Reader Feedback
-
-
developintelligence
Dec 19, 2010 @ 6:47 pm | delete
- What does exactly the meaning of Semantic HTML?
uml training | learn java
-
-
-
bjdixon
May 31, 2007 @ 9:32 pm | delete
- Have any tips you want to share about Semantic HTML? Leave them here!
-
-
-
bjdixon
May 31, 2007 @ 9:30 pm | delete
- Got ideas about Semantic HTML? You can have your say here.
-
Recommended reading
by bjdixon
Hi, my name is Brian J. Dixon. I'm a Web Developer living in Toronto. If you like my lenses you should check out my blog Building better than... more »
- 0 featured lenses
- Winner of 2 trophies!
- Top lens »
Explore related pages
- Photoshop And Dreamweaver Photoshop And Dreamweaver
- Live Update javascript: tips and tricks for web designers Live Update javascript: tips and tricks for web designers
- Web Development Tutorials Web Development Tutorials
- Box model and CSS inheritance Box model and CSS inheritance
- CSS Design CSS Design
- Beginner's Guide to Web Design using CSS Beginner's Guide to Web Design using CSS
