Formatting elements were designed to display special types of text:
<b> – Bold text- element defines bold text, without any extra importance
<strong> – Important text- element defines text with strong importance
<i> – Italic text- content inside is typically displayed in italic
<em> – Emphasized text- element defines emphasized text
<mark> – Marked text – element defines text that should be marked or highlighted
<small> – Smaller text – element defines smaller text
<del> – Deleted text – element defines text that has been deleted from a document
<ins> – Inserted text – element defines a text that has been inserted into a document
<sub> – Subscript text – element defines subscript text
<sup> – Superscript text – element defines superscript text
Example
<!DOCTYPE html> <html> <head> <title> Formatting Text </title> </head> <body> <p> <b>Here is bold text.</b> </p> <p> <strong> Here is strong text. </strong></p> <p> <i> Here is italic text. </i></p> <p> <em> Here is text emphasized </em> </p> <p> <small> Here is small text. </small> </p> <p> <del> Here is text with strikeout. </del> </p>
<p> <sup> This is superscripted text </sup> </p>
<p> <sub> This is subscripted text. </sub> </p> </body> </html>
Scroll to Top
Login
Accessing this course requires a login. Please enter your credentials below!