HTML: text formatting

<!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.                    Definition:- 
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>
HTML: text formatting HTML: text formatting Reviewed by Network security on April 29, 2019 Rating: 5

No comments:

Useful Information

Powered by Blogger.