Placing an emphasis
Sometimes it is necessary to highlight text in your documents by placing more of an emphasis on it than the rest of the words in the same paragraph. This can be done in two ways:
<em>This is some emphasised text</em>
In the above example, the text is given a standard emphasis. In a lot of browsers this text will be rendered as italic, but using Cascading Stylesheets can change the appearance or ensure that it is italic in all CSS enabled browsers.
<strong>This is some strongly emphasised text</strong>
The example above shows the other way in which text can be emphasised. This is by using the strong element; an element which strongly emphasises the text. The strong element is, as it's name suggests, a stronger element than the regular emphasis element.
In most browsers the strong element causes the text to be rendered in bold, but, just like the emphasis element, this is not always the case.
In the next tutorial, we will discuss how text can be given the visual characteristic of bold and italic, as well as a discussion of why these are generally a bad idea.