HTML - Formatting tags - Set 1

The <b> element is used to define text that should be displayed in bold.

It emphasizes the importance of the text and visually makes it stand out.

<b>This text is bold.</b>

The <strong> element is used to define text that has strong importance or emphasis.

It highlights the text and indicates that it is particularly significant.

<strong>This text is important.</strong>

The <i> element is used to define text that should be displayed in italic.

It indicates a different style or tone for the text, such as emphasis or foreign words.

<i>This text is in italics.</i>

The <em> element is used to define text that has emphasis.

It emphasizes certain words or phrases, adding importance to them.

<em>This text is emphasized.</em>

The <mark> element is used to highlight or mark a specific portion of text.

It visually separates and draws attention to the marked text.

<mark>This text is marked.</mark>

 The <u> element is used to define text that should be underlined.

It visually emphasizes the text by placing a line underneath it.

<u>This text is underlined.</u>

The <tt> element is used to define text that should be displayed in a monospaced or "typewriter" font.

It is often used for displaying code or indicating computer-generated text.

<tt>This text is displayed in a monospaced font.</tt>

These HTML elements, along with their attributes, allow web developers to format and style text in various ways to convey meaning and add emphasis to different parts of the content.