How do you format special types of text in HTML...?


This page will show you some of the tags used for webpage text formatting.

Learn to make a website people

More HTML Text Styles and formatting

Text Styles continued

<em> Emphasize

<em>This is an Emphasized element</em>
This is an Emphasized element

Note: Emphasize is another way to show italised text or emphasized text

<strong> Strong

<strong>This is Strong Text</strong>
This is Strong Text

Note: Strong is another way to show bold text

<big> Big

<big>This is BIG Text</big>
This is BIG Text

Note: Generally it is better to format complete lines or titles with the header tag, but the big tag can be usefull to highlight one word or character in a sentance

<small> Small

<small>This is small Text</small>
This is small Text

Check out the above examples here.

Superscripts and Subscripts

HTML provides some tags that are useful for making the given text to be as subscript text and superscript text.
A subscript or superscript can be numbers, figures and symbols that are set slightly below or above the normal text. Superscripts are set above and subscripts below the baseline. This type of text is usually found among other uses, in dates, mathematical expressions and chemical formulas, such as H20 and 0.21210 example:

H<sub>2</sub>0
H20
0.212<sup>10</sup>
0.21210
25<sup>th</sup> December
25th December
Note: You can also use the <small> tag together with the <sup> tag, to make the element smaller than the normal text
25<small><sup>th</sup></small> December
25th December

Check out the example here.

Site designed by Pro-WebDesign