While paragraphs and lists are meant to identify whole blocks of text, we sometimes want to provide meaning to a word (or a few words) within a text.
For important words, use the
This is important but this is not.
<strong> elements are displayed in bold, but keep in mind that it is only the browser’s default behavior. Don’t use
<strong> only to put some text in bold, but rather to give it more importance.
For emphasized words, use the
This is emphasized but this is not.
<em> elements are displayed in italic, but keep in mind that it is only the browser’s default behavior. Don’t use
<em> only to put some text in italic, but rather to give it stress emphasis.
Abbreviations like W3C or CD can use the
You can add a
title attribute to specify the abbreviation’s description, which will appear by hovering the element:
I just bought a CD.
<blockquote> element is a block-level element. It has an inline version:
He said “Hello World” and just left.
Other inline elements
There are plenty of other inline semantic elements to choose from, but we’ve covered the most common ones.