02
 

Emphasis

Text wrapped inside asterisks (*) and underscores (_) will be emphasized. Use the one you prefer.

Click on the red points to know more. Move through the exercises by using the buttons or the dot menu at the bottom.

Click on the red points to know more. Move through the exercises by using the buttons or by swiping left or right.

*Italics* **Bold**
  • More

    One asterisk (or underscore) will make the enclosed text italic.

    Close
  • More

    The same character must be used to open and close the emphasized text.

    Close
  • More

    Two asterisks (or underscores) will make the enclosed text bold.

    There must be no space between the asterisks (or underscores).

    Close
  • More

    There must be no space between the asterisks (or underscores).

    Close

In this exercise, make the words "American Oxygen" bold.

Show generated HTML?

You can use bold and italic in the same text at the same time. For this exercise, make the words "The New York Times Best Seller" bold and "The New York Times" italic. Hint: You can also use asterisks and underscores at the same time.

Show generated HTML?

If you need to use an asterisk or an underscore as a literal instead of as delimiter, use a backslash to escape it. In this exercise, convert the text 20% OFF (in italics) to *20% OFF* (surrounded by asterisks).

Show generated HTML?

Play with the concepts you just learned!

For example:
What happens when you have more than two asterisks (or underscores)? In both sides? In just one side?
Is always necessary to escape an asterisk (or underscore) when you want one inside a emphasized text?
Emphasize a text and then add spaces around the asterisks (or underscores) and the text.

See the generated HTML. Even if you don't know HTML, try to understand what's happening. Go wild!
Go to the next lesson when you're ready.

Show generated HTML?

Go to the next lesson