Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
This Inline text formatting (strong, em, b, i) worksheet is part of the HTML and CSS Journey journey. Print it as a booklet?
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1<strong>Warning!</strong> | AClosing tags must be in reverse order of opening - </em> must come before </b> | |
| 2<em>Please read this</em> | B<bold> is not a valid HTML element - use <b> for visual bold or <strong> for important text | |
| 3<b> makes text visually bold - no semantic importance implied | C<p>The term <i>in situ</i> means in place.</p> | |
| 4<i> makes text visually italic - no emphasis implied | D<p>The <b>quick</b> brown fox.</p> | |
| 5<p><bold>Important!</bold></p> | EMarks 'Warning!' as semantically important - browsers display it bold and screen readers may stress it | |
| 6<p><b>Bold<em>and italic</b></em></p> | FMarks the phrase for emphasis - browsers display it italic and screen readers may stress it |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
<strong> — An inline HTML element that marks text as important. Browsers display it bold. Use it when the content has semantic importance, not just for visual styling.<p>This is <strong>important</strong> text.</p><p>Please <em>read this carefully</em>.</p><p>Warning: <strong>do not delete</strong>.</p><p>The <b>quick brown fox</b> jumped.</p><p>The term <i>in situ</i> means in place.</p>