Emphasizing: em and i tags [9/17]
The next two tags are used to emphasize a word or phrase.
em tag is used to give to a word or phrase special emphasis critical to understanding a sentence.
For example, to emphasize that Muffin is not for eating dill (it prefers tuna), but just likes to chase it down the floor, we would make the following markup:
Instructor Muffin likes to <em>play</em> with dill.
<i> tag is used to separate a word or phrase from normal text without emphasizing it. Usually it is used for names, terms or foreign words.
For example, to show that inspector is some special term, the markup would be as follows:
Muffin uses web browser <i>inspector</i> to find errors in his code.
Both tags are visually identical; they style text with italics.
<i>tag in HTML5. Before that, it was used for italicizing purposes only.
- Let's experiment with emphasizing: in the first paragraph, use the
emtag for the word "profession"
- and the word "competitive" (also in the same paragraph).
- Use the
itag to style "online" in the second paragraph.