HTML – FORMATTING Tags part 2

html-formatting-tags-part

HTML Formatting Tags

 

Monospaced Font 


The content of a <tt>...</tt> element is written in monospaced font. Most of the fonts are known as variable-width fonts because different letters are of different widths (for example, the letter 'm' is wider than the letter 'i'). In a monospaced font, however, each letter has the same width.

 

 <!DOCTYPE html> 
<html> 
<head> 
<title>Monospaced Font Example</title> 
</head> 
<body> 
<p>The following word uses a <tt>monospaced</tt> typeface.</p> 
</body> 
</html> 


Superscript Text 


The content of a <sup>...</sup> element is written in superscript; the font size used is the same size as the characters surrounding it but is displayed half a character's height above the other characters. 
 

<!DOCTYPE html> 
<html> 
<head> 
<title>Superscript Text Example</title> 
</head> 
<body> 
<p>The following word uses a <sup>superscript</sup> typeface.</p> 
</body> 
</html> 

Subscript Text 


The content of a <sub>...</sub> element is written in subscript; the font size used is the same as the characters surrounding it, but is displayed half a character's height beneath the other characters. 

 

<!DOCTYPE html> 
<html> 
<head> 
<title>Subscript Text Example</title> 
</head> 
<body> 
<p>The following word uses a <sub>subscript</sub> typeface.</p> 
</body> 
</html> 

 

Inserted Text 


Anything that appears within <ins>...</ins> element is displayed as inserted text. 

<!DOCTYPE html> 
<html> 
<head> 
<title>Inserted Text Example</title> 
</head> 
<body> 
<p>I want to drink <del>cola</del> <ins>wine</ins></p> 
</body> 
</html>

 

Thank You for visit Webriceter.com Design & Develop by Abdur Rahaman