Learn
HTML forms
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.
Stuck? Get a hint
To format a text to be italic, wrap your text in emphasis opening and closing tags. For example, to format a text that said "My Site" to be italic, write the following:
<em>My Site</em>2.
Let's also format our perfect vacation so that it's bold.
Stuck? Get a hint
To format a text to be bold, wrap your text in bold emphasis opening and closing tags. For example:
<strong>My Site</strong>Sign up to start coding
Already have an account?
Sign In
Course content
