In the Basic formatting article, it was said that the <i>, <b>, and <s> elements represent italic text, bold text, and strikethrough text, respectively. This was true, but not anymore. Newer standards of HTML have redefined the meaning of these elements. The meaning of these elements are now oriented towards their content rather than their appearance. The main idea when using HTML is to focus on the content of the website while worrying about the appearance later when you start using CSS.
The <i> element
<i> is a very general element that can be used for terms, names, titles of works, titles of nobility, foreign words, foreign phrases, thoughts, or emphasis. Here are some examples of it's use:
For use with the name of something:
For use with a term:
For use with a thought:
For use with a foreign word or phrase:
For use with the title of a book, song, or movie:
The <em> element
<em> is more specific than it's more general <i> relative, it is strictly for stress emphasis of a word or phrase and nothing more, thus it is more preferred than <i> if stress emphasis is all you need. Example:
The <cite> element
<cite> is also preferred over <i> specifically for titles of creative works. Despite the quote above from W3C, using this tag for or with an author's name is disputed by the other HTML standard maintained by WHATWG.
Example use for a title of a creative work:
The <dfn> element
This element is preferred over <i> for use with a term that is being defined.
When used in the above way, the content of the element must contain the exact word or phase being defined and nothing else. Alternatively, an acronym can be used as the content, in which case the value of the element's title attribute must be the exact word or phrase that's being defined:
When used in this way, many web browsers will display the title of the definition's acronym in a tooltip when the element is hovered over. It is important that the definition of the term be found immediately outside the element, within the enclosing paragraph or list item.
The <abbr> element
This element represents an abbreviation whose expansion is not necessarily being defined as one is doing while using the <dfn> element. Example:
The <b> element
This element shouldn't be used for stress emphasis (use <em> for that), importance (use <strong> for that), heading text (use the <h1> - <h6> elements for that), or alternate voice/mood (use <i> for that). It should just be used to make text more visible, while not affecting the tone or tempo of the text when read out loud.
Example for use in an opening sentence of an article:
Example for bringing attention to offered products or services:
Example for bringing attention to an action in interactive software:
The <strong> element
This element is recommended over <b> for scenarios illustrated by the following examples.
For seriousness:
For importance apart from other details:
For use as a warning label:
The <mark> element
Example when highlighting a part of a code fragment:
Example when highlighting something relevant from an originally unmarked text:
The <s> element
Rather than removing content that is out of date, the <s> element allows one to keep it visible while contrasting it with it's updated replacement. This can be useful for pointing out an update in the price or inventory status of something.
Example 1: Show change in price.
Example 2: Show change in inventory status.
Example 3: Show change in a policy or rule.
The <del> element
W3C gives a clue to the difference between <s> and <del>, it appears that <s> is for removing content which is under the complete authority of the owner, not requiring either a citation or reason for the removal or update. Whereas <del> is to record the removal of content from an official or public document where multiple editors or peer are watching the document. <del> can also be used to cross off completed tasks or to indicate changes between different versions of a document. Basically, <s> indicates past information that is now outdated while <del> indicates a type of document edit where a previous version of this document used to include this portion of text but not anymore.