Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Emphasis and Bold | Basic Elements
Introduction to HTML

book
Emphasis and Bold

The <em>, <i>, <strong>, and <b> elements are all examples of inline elements. The elements of <em> and <i> emphasize a text.

html

index.html

copy
<p>This is an <em>important</em> piece of information.</p>

The <strong> element is similar to the <em> element but is used to emphasize a text even more stronger.

This element is often rendered in bold text to indicate that the text is critical.

html

index.html

copy
<p>This is a <strong>very</strong> important piece of information.</p>

The <b> element makes the text bold without implying any additional importance or emphasis.

html

index.html

copy
<p>This is an <b>important</b> piece of information.</p>

Some other common inline elements:

  • <abbr> indicates that the text it contains is an abbreviation or acronym;

  • <code> indicates that the text it contains is a code example or programming language keyword;

  • <mark> is used to highlight a piece of text within a block of text;

  • <sub> and <sup> are used to create subscript and superscript text, respectively;

Each of these elements can be used inline within a block of text to add meaning or formatting to specific words or phrases.

Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 2. Chapter 3

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

some-alt