HTML Formating

Formating Text

There will undoubtedly come a time when you need to add some formatting to your web pages text. There are numerous elements to help you do just that from within the HTML itself.

Bold Text (<b>)

When you want to add Bold Text to your html document you do so with the <b> tag.

Italics (<em>)

When you want to add Italics otherwise known as emphasis to your html document you do so with the <em> tag.

Underline (<u>)

When you want to Underline some text in your html document you do so with the <u> tag.

Strikethrough (<del>)

When you want to Strikethrough some text in your html document you do so with the <del> tag.

Subscript (<sub>)

When you want to Subscript some text in your html document you do so with the <sub> tag.

Superscript (<sub>)

When you want to Superscript some text in your html document you do so with the <sup> tag.

Html Code:

Lets make some text <b>bold</b>!
Lets make some text <em>Italic</em>.
Lets <u>underline</u> some text.
Lets <del>strikethrough</del> some text.
Heres some <sup>superscripted</sup> text.
And also some <sub>subscripted</sub> text.
	

Browser Display:

Lets make some text bold!
Lets make some text Italic.
Lets underline some text.
Lets strikethrough some text.
Heres some superscripted text.
And also some subscripted text.

All these techniques can be accomplished with CSS (Cascading Style Sheets). For more information on CSS check out our Cascading Style Sheets Tutorials.