HTML defines special formatting elements to display text with special meanings, such as bold, italic, subscript, and superscript. Some common formatting elements include <b> for bold text, <i> for italic text, <sub> for subscripted text, and <sup> for superscripted text. These elements were designed to display different types of text with semantic importance or visual formatting.
2. HTML Formatting Elements
• HTML also defines special elements for defining text
with a special meaning.
• HTML uses elements like <b> and <i> for formatting
output, like bold or italic text.
• Formatting elements were designed to display
special types of text:
Call US: +91-9915337448 Email Us: info@webtechlearning.com
3. HTML Formatting Elements
• Bold text
• Important text
• Italic text
• Emphasized text
• Marked text
• Small text
• Deleted text
• Inserted text
• Subscripts
• Superscripts
Call US: +91-9915337448 Email Us: info@webtechlearning.com
4. HTML Bold and Strong Formatting
• The HTML <b> element defines bold text, without any extra
importance.
Call US: +91-9915337448 Email Us: info@webtechlearning.com
<p>This text is normal.</p>
<p><b>This text is bold</b></p>
5. HTML Bold and Strong Formatting
• The HTML <strong> element defines bold text,
without any extra importance.
Call US: +91-9915337448 Email Us: info@webtechlearning.com
<p>This text is normal.</p>
<p><strong>This text is strong</strong>.</p>
6. HTML Italic and Emphasized Formatting
• The HTML <i> element defines italic text, without any extra
importance.
Call US: +91-9915337448 Email Us: info@webtechlearning.com
<p>This text is normal.</p>
<p><i>This text is italic</i>.</p>
7. HTML Italic and Emphasized Formatting
• The HTML <em> element defines emphasized text, with
added semantic importance.
Call US: +91-9915337448 Email Us: info@webtechlearning.com
<p>This text is normal.</p>
<p><em>This text is emphasized</em>.</p>
8. HTML Small Formatting
• The HTML <small> element defines small text:
Call US: +91-9915337448 Email Us: info@webtechlearning.com
<h2>HTML <small>Small</small> Formatting</h2>
9. HTML Marked Formatting
• The HTML <mark> element defines marked or
highlighted text:
Call US: +91-9915337448 Email Us: info@webtechlearning.com
<h2>HTML <mark>Marked</mark> Formatting</h2>
10. HTML Deleted Formatting
• The HTML <del> element defines deleted (removed) text.
Call US: +91-9915337448 Email Us: info@webtechlearning.com
<p>My favorite color is <del>blue</del> red.</p>
11. HTML Inserted Formatting
• The HTML <ins> element defines inserted (added) text.
Call US: +91-9915337448 Email Us: info@webtechlearning.com
<p>My favorite <ins>color</ins> is red.</p>
12. HTML Subscript Formatting
• The HTML <sub> element defines subscripted text.
Call US: +91-9915337448 Email Us: info@webtechlearning.com
<p>This is <sub>subscripted</sub> text.</p>
13. HTML Superscript Formatting
• The HTML <sup> element defines superscripted text.
Call US: +91-9915337448 Email Us: info@webtechlearning.com
<p>This is <sup>superscripted</sup> text.</p>