HTML Formatting Codes

Now we see, in a html file how can we formatting the including text. These codes are called html text formatting codes.

# Open Notepad.
# Write the codes like below.

<html>
<body>

<p><b>This "b" code is use to bold the texts.</b></p>
<p><strong>This "strong" code is use to bold the texts.</strong></p>
<p><big>This "big" code is use to big the texts.</big></p>
<p><em>This "em" code is use to emphasized the texts.</em></p>
<p><i>This "i" code is use to italic the texts.</i></p>
<p><small>This "small" code is use to small the texts.</small></p>
<p>This "sub" code is use to<sub>subscript</sub> the texts.</p>
<p>This "sup" code is use to<sup>superscript</sup> the texts.</p>

</body>
</html>

# Now save this as text_formatting.html

# Open the file in any browser and see the output.