-
Book Overview & Buying
-
Table Of Contents
Responsive Web Design with HTML5 and CSS3
By :
Besides the structural elements we've looked at, HTML5 also revises a few tags that used to be referred to as inline elements. The HTML5 specification now refers to these tags as text-level semantics (http://dev.w3.org/html5/spec/Overview.html#text-level-semantics). Let's take a look at a few common examples.
Although we may have often used the <b> element merely as a styling hook, it actually meant "make this bold". However, you can now officially use it merely as a styling hook in CSS as the HTML5 specification now declares that <b> is:
…a span of text to which attention is being drawn for utilitarian purposes without conveying any extra importance and with no implication of an alternate voice or mood, such as key words in a document abstract, product names in a review, actionable words in interactive text-driven software, or an article lede.
OK, hands up, I've often used <em> merely as a styling hook...
Change the font size
Change margin width
Change background colour