HTML

Bold, Italic, Underline in HTML – Examples & Syntax

Apr 30, 2025, 6:06 AM
Blog Thumbnail

Today cover three HTML tags that are used the most: <b>, <i>, and <u>. These tags perform basic text styling functions which can be quite useful.

🔸 Bold Text – <b>

Using the <b> tag allows you to make the text bold without adding importance. (For importance use <strong>.)

      <b>This text is bold</b>
    

Output:

This text is bold

🔹 Italic Text – <i>

The <i> tag allows you to italicize the text for stylistic or alternative voice.

      <i>This text is italic</i>
    

Output:

This text is italic

🔻 Underlined Text – <u>

The <u> tag underlines the text. The text below is also marked for emphasis, but it is recommended to use CSS instead.

      <u>This text is Underlined</u>
    

Output:

This text is Underlined

🧩 Combined Formatting Example

You can perform multiple styles through combined tags.

      <b><i><u>Bold, Italic and Underlined</u></i></b>
    

Output:

Bold, Italic and Underlined

📌 Summary

  • <b> makes the text bold
  • <i> makes the text italic
  • <u> underlines the text
  • Combine to create formational magic