Formatting

HTML Text Formatting

HTML text formatting is a fundamental aspect of web development that enables you to enhance the readability and visual appeal of your content.

Example

In this example we demonstrates some of the most common HTML tags used for text formatting:
    <h4>Topfreecourse <b>bold</b>text.</h4>
    <h4>Topfreecourse <i>italic</i> text.</h4>
    <h4>Topfreecourse <u>underlined</u> text.</h4>
    <h4>Topfreecourse <s>strikethrough</s> text.</h4>
    <h4>Topfreecourse <strong>important</strong> text.</h4>
    <h4>Topfreecourse <em>emphasized</em> text.</h4>
            

OutPut:

  • Topfreecourse bold text.
  • Topfreecourse italic text.
  • Topfreecourse underlined text.
  • Topfreecourse strikethrough text.
  • Topfreecourse important text.
  • Topfreecourse emphasized text.

Summary of Formatting Elements

Element Name Description
<strong> Important text<
<b> Bold text
<small> Smaller text
<i> Italic text
<em> Emphasized text
<mark> Marked text
<del> Deleted text
<ins> Inserted text
<sub> Subscript text
<sup> Superscript text
Previous Next