Text Styling
HTML elements can also be used to style text. For example, text that is the content of the strong
element will be displayed in bold, and text that is the content of the em
element will be displayed in italics.
This text:
<p>The domestic dog (<em>Canis familiaris</em>) is the <strong>largest</strong> domesticated carnivore.</p>
Will be displayed like this:
The domestic dog (Canis familiaris) is the largest domesticated carnivore.
Instructions
Change the word thousands
to bold in the first paragraph using the strong
element.
Make the last two words of the first paragraph small cats
italic using the em
element (without the period at the end of the sentence).
Start programming for free
4/8