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>.
PREVIOUS · MODULE 11Horizontal rule (hr)
YOU ARE HERE · MODULE 12Inline text formatting (strong, em, b, i)
NEXT · MODULE 13HTML attributes

Discover other journeys with this module

What students will learn in this module

Every question in Module 12

Quick questions

  1. Which element marks text as semantically important and renders it bold?A<strong>B<b>
  2. Which element marks text for emphasis and renders it italic?A<i>B<em>
  3. True or false: <strong> and <b> produce identical visual results in most browsers.AFalseBTrue
  4. True or false: inline elements like <strong> and <em> start on a new line.AFalseBTrue
  5. 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 does

Fill in the blanks

  1. <p>This is <___>important</strong> text.</p>

    Hint: Type the element name that marks text as semantically important

  2. <p>Please <___>read this carefully</em>.</p>

    Hint: Type the element name that marks text for emphasis

  3. <p>Warning: <strong>do not delete</___>.</p>

    Hint: Type the closing tag name that ends the strong element

  4. <p>The <___>quick brown fox</b> jumped.</p>

    Hint: Type the element name that makes text visually bold without implying importance

  5. <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>