HTML Text Basics
Emphasis is an important aspect of web design and HTML provides us with several elements to add emphasis to text.
By using the
<small> elements, we can add meaning to our text and make it stand out to users:
<em> tag is used to add emphasis to text, usually in the form of italic text.
<strong> tag is used to indicate that the text within it should be given strong emphasis.
<mark> element is used to highlight text, making it stand out from the surrounding text.
<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.
Inside our paragraph, let's format our fascinating destinations text to be italic.
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:
Let's also format our perfect vacation so that it's bold.
To format a text to be bold, wrap your text in bold emphasis opening and closing tags. For example:
Sign up to start coding
Already have an account?