text formatting tag


1- text formatting tag

-----Description-----



Text formatting
We can use Bold, Italic and Underline tag anywhere, but we should close all tags properly. 

  For example 
if you have many nested tag you should close the tag in First Open Last Close format. 
<b> .. </b> - Bold your text
<i> .. </i> - Italic text
<u> .. </u>- Underline text

Nested tag
In the following example we are using nested tag, please see how the tag closed.
    <b><i>T</i>E<u>S</u>T</b>

Example-input
<!DOCTYPE html> 
<html> 
<head> 
<meta name="viewport" content="width=device-width, initial-scale=1"> 
<title>Text Formatting</title> 
</head> 
<body> 
<b>Bold Text</b> 
<br> 
<i>Italic Text</i> 
<br> 
<u>UnderLine Text</u> 
<br> 
<b><u><i>This is the Mixed Line</i></u></b> 
</body> 

</html>

Output
Bold Text
Italic Text
UnderLine Text
This is the Mixed Line

Comments

Popular posts from this blog

Fish effect

Bulb cool Effect