Blog

Here's what's on the minds of our marketing and technology experts.

For more perspectives from Sundog, check out Sundog: The Podcast and our knowledge.

RSS Icon Subscribe to blog feed What's this?

Erik Uetz
.(JavaScript must be enabled to view this email address)
Information Architect

More posts by this author

Full Post

Learning to Love <b> and <i>

Since the great Web Standards revival, we web developers have sworn off presentational mark-up. Strict HTML 4.01 and XHMTL 1 have exorcised presentational tags, such as <font> and <center>, completely out of the spec. Now, we bold with <strong> and italicize with <em>. There doesn’t seem to be a need for <b> or <i> anymore. So why are they still part of the spec?

It’s because <strong> and <em> are not replacements for <b> and <i>. They are supplements. And there are still plenty of places <b> and <i> should be used instead.

Book or movie titles are usually italicized, but it’s not to give them emphasis. It’s merely to set the text apart, or to give it formality. The <em> tag would not be appropriate in this case. Sure, a <span> with a class attribute of ‘movie-title’ could be used, and then italicized with CSS. But why not use the tag that specifically italicizes text? Using something like <i class=“movie-title”> gives the text meaning and gives it formatting for accessibility and viewing the document without styles. (By the way, the and in the last sentence was marked-up with <em> because I was giving emphasis to it, but was marked up with <i> in this sentence because I am only setting it apart.)

The semantics of <b> and <i> are found between the lines. Just like other non-semantic tags, such as <div> and <span>, they are used to group text together.

<b> and <i> have gotten a raw deal. It’s time to bring them back to their former glory!

Don't miss any posts! Subscribe to our blog feed or only posts by Erik Uetz.

Short URL: http://sundoginteractive.com/e/2233

Comments

Be the first to comment!

Leave A Comment

Please help us stop spam by typing the word you see in the image below:

Contact Us

Fill out and send the form below to learn about our refreshing approach to measureable marketing, or call 1.888.9.sundog.

     
Follow us on:
Twitter
Facebook
Flickr
Google+