Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 3

HTML Text Formatting Tags

Tag Description
<b> Defines bold text
<big> Defines big text
<em> Defines emphasized text
<i> Defines italic text
<small> Defines small text
<strong> Defines strong text
<sub> Defines subscripted text
<sup> Defines superscripted text
<ins> Defines inserted text
<del> Defines deleted text
Example

A text with a deleted part, and a new, inserted part:

<p>My favorite color is <del>blue</del> <ins>red</ins>!</p>

The <ins> tag defines a text that has been inserted into a document.

The <del> tag defines text that has been deleted from a document.

Browsers will normally strike a line through deleted text and underline inserted text.

Optional Attributes
Attribute Value Description DTD
cite URL Specifies a URL to a STF
 An absolute URL - Points to another document which explains
web site (like why the text was
cite="http://www.example.com") inserted/deleted
 A relative URL - Points to a page
within a web site (like
cite="example.html")

 An anchor URL - Points to a named


anchor (like cite="#bottom")
datetime YYYY-MM-DDThh:mm:ssTZD Specifies the date and time STF
when the text was
inserted/deleted

You might also like