Code Highlights logo

Learn

HTML Text Basics

HTML text formatting

Emphasis is an important aspect of web design and HTML provides us with several elements to add emphasis to text.

By using the <em>, <strong>, <mark>, and <small> elements, we can add meaning to our text and make it stand out to users:

  • The <em> tag is used to add emphasis to text, usually in the form of italic text.
  • The <strong> tag is used to indicate that the text within it should be given strong emphasis.
  • The <mark> element is used to highlight text, making it stand out from the surrounding text.
  • The <small> tag is another HTML emphasis tag that can be used to indicate that the text within it should be displayed in a smaller font size than the surrounding text.

Instructions

1.

Inside our paragraph, let's format our fascinating destinations text to be italic.

2.

Let's also format our perfect vacation so that it's bold.

Sign up to start coding

Already have an account?

Sign In

Course content