Menu
Coddy logo textTech

Bold and Italic Text

Part of the Fundamentals section of Coddy's HTML journey — lesson 9 of 60.

In HTML, you can style text easily!

  • Make it bold with <strong>
  • Make it italic with <em>

These tags help emphasize important words and make them stand out!

<p>This is normal text</p>
<p>This is <strong>bold</strong> text</p>
<p>This is <em>italic</em> text</p>

In this example, the word “bold” will be displayed in bold. The word “italic” will be displayed in italics. 

challenge icon

Challenge

Easy

There's a famous quote by John Archibald Wheeler—and we can't disagree with it! But we can style it.

  1. Wrap "difficulty" in <strong> to make it bold.
  2. Wrap "opportunity" in <em> to make it italic.

Cheat sheet

Style text with emphasis tags:

  • Make text bold with <strong>
  • Make text italic with <em>
<p>This is normal text</p>
<p>This is <strong>bold</strong> text</p>
<p>This is <em>italic</em> text</p>

Try it yourself

<!DOCTYPE html>
<html>
    <body>
        <!-- Write code here -->
        <p>In the middle of every difficulty lies opportunity.</p>
    </body>
</html>
quiz iconTest yourself

This lesson includes a short quiz. Start the lesson to answer it and track your progress.

All lessons in Fundamentals