Inline text formatting (strong, em, b, i), online
Six activities your students do on their own devices. See who's finished, and their scores.
Inline text formatting (strong, em, b, i) in one minute
What students need to know
<b> makes 'quick' bold visually. Unlike <strong>, it does not suggest the word is important. <i> is used here for a technical term. It is italic but carries no semantic stress - that is what <em> would be for.
Inline elements sit within the surrounding text flow. They do not start a new line - that is the behaviour of block-level elements like <p>. All four are regular elements with both opening and closing tags. None of them are self-closing.
Mistakes students make
- HTML tag names must be lowercase. <Strong> and </Strong> with a capital S are non-standard. The correct form is <strong> and </strong>.
- The em element is closed with <em> instead of </em>. A closing tag must have a forward slash: </em>.
- The <b> element is opened but never closed. Every opening <b> tag must be matched with a closing </b> tag.
- <italic> is not a valid HTML element. The correct element for visual italic styling is <i>, not <italic>.
What students will learn in this module
Every question in Module 12
Quick questions
- Which element marks text as semantically important and renders it bold?A<strong>B<b>
- Which element marks text for emphasis and renders it italic?A<i>B<em>
- True or false: <strong> and <b> produce identical visual results in most browsers.AFalseBTrue
- True or false: inline elements like <strong> and <em> start on a new line.AFalseBTrue
- Which element should you use to italicise a technical term with no special emphasis?A<i>B<em>
Key terms
Students type the meaning of:
<strong>
Match the pairs
<strong>Warning!</strong>Match it to what it does<em>Please read this</em>Match it to what it does<b> makes text visually bold - no semantic importance impliedMatch it to what it does<i> makes text visually italic - no emphasis impliedMatch it to what it does<p><bold>Important!</bold></p>Match it to what it does<p><b>Bold<em>and italic</b></em></p>Match it to what it doesFill in the blanks
<p>This is <___>important</strong> text.</p>
Hint: Type the element name that marks text as semantically important
<p>Please <___>read this carefully</em>.</p>
Hint: Type the element name that marks text for emphasis
<p>Warning: <strong>do not delete</___>.</p>
Hint: Type the closing tag name that ends the strong element
<p>The <___>quick brown fox</b> jumped.</p>
Hint: Type the element name that makes text visually bold without implying importance
<p>The term <___>in situ</i> means in place.</p>
Hint: Type the element name that makes text visually italic without semantic emphasis
Spot the error
Question 1
A<Strong>Warning</Strong>B<p>Normal text here.</p>C<p>More content.</p>
Question 2
A<p>Read this:B <em>very carefully<em>C before continuing.</p>
Question 3
A<p>This isB normal textC and this is <b>bold text.</p>
Question 4
A<p>Here isB some text withC an <i>italic phrase</i>D and more <italic>words</italic>.
Question 5
A<p>AB <strong>critical</strong>C <em>note</em>D follows:E <b><strong>double bold</b></strong>
