HTML Text Formatting

HTML text formatting is used for adding style text for defining with a special meaning. Example elements <b> and <i> refer to bold and italic text in HTML coding.

<html>
<head>
<title>Text formatting</title>
</head>

<body>
<p>This is a normal text</p>
<b>This is a bold text</b>
<i>This i a italic text</i>
</body>
</html>

Text Formatting:

  • Bold text => <b>Content</b>
  • Important text => <strong>Content</strong>
  • Italic text => <i>Content</i>
  • Emphasized text => <em>Content</em>
  • Marked text => <mark>Content</mark>
  • Small text => <small>Content</small>
  • Deleted text => <del>Content</del>
  • Inserted text => <ins>Content</ins>
  • Subscripts => <sub>Content</sub>
  • Superscripts => <sup>Content</sup>
  • Block quote text =><BlockQuote>Content<BlockQuote>
  • Cite text =><Cite>Content</Cite> 
  • Code text => <Code>Content</Code>