40-HTML Formatting Tags

0
444

This tutorial is all about HTML Formatting Tags.

html – Horizontal Rule <hr />

Horizontal rule tag <hr />  doesn’t have an ending tag just like the line break tag <br />. The  <hr /> tag  provides a straight line across the screen.

 

Example:

 

html – code <code>

The code tag <code> specifies the text as a computer code and it changes in  size, font face, and letter spacing to provide computer code text .

 

Example:

 

html – <sup> Superscript

Superscripted text is commonly used as an exponent in mathematical operations.

 

Example:

 

html – Subscript <sub>

The subscript tags provides subscripted text onto your websites. It is commonly used in chemical elements symbols.

 

Example:

We Exist to Provide Best Quality and <sub>100%</sub> Free Source  Code and Tutorials.

O<sub>2</sub> – Oxygen
H<sub>2</sub>0 – Water

html – Strikethrough <del>

Strikethrough tag <del> provides crossed out text into the web site.

 

Example:

<del>scratched</del> out text
<del>Eat Dinner</del>
<del>Brush Teeth</del>
<del>Go to bed</del>

 

Result:

scratched out text

Eat Dinner

 

Brush Teeth

 

Go to bed

Facebook Comments

LEAVE A REPLY

Please enter your comment!
Please enter your name here