HTML – FORMATTING Tags

HTML – FORMATTING Tags

HTML – FORMATTING 

If you use a word processor, you must be familiar with the ability to make text bold, italicized, or underlined; these are just three of the ten options available to indicate how text can appear in HTML and XHTML. 

Bold Text 


Anything that appears within <b>...</b> element, is displayed in bold as shown below: 

<!DOCTYPE html> 
<html> 
<head> 
<title>Bold Text Example</title> 
</head> 
<body> 
<p>The following word uses a <b>bold</b> typeface.</p> 
</body> 
</html>

Italic Text 


Anything that appears within <i>...</i> element is displayed in italicized as shown below: 

 

<!DOCTYPE html> 
<html> 
<head> 
<title>Italic Text Example</title> 
</head> 
<body> 
<p>The following word uses a <i>italicized</i> typeface.</p>  
</body> 
</html> 


Underlined Text 


Anything that appears within <u>...</u> element, is displayed with underline as shown below: 

<!DOCTYPE html> 
<html> 
<head> 
<title>Underlined Text Example</title> 
</head> 
<body> 
<p>The following word uses a <u>underlined</u> typeface.</p> 
</body> 
</html>

 

Strike Text 

Anything that appears within <strike>...</strike> element is displayed with strikethrough, which is a thin line through the text as shown below: 

<!DOCTYPE html> 
<html> 
<head> 
<title>Strike Text Example</title> 
</head> 
<body> 
<p> <strike>The following word uses a <strike>strikethrough</strike> typeface.</p> 
</body>
</html>


 

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