Text formatting in HTML

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 foramt.
<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>


<!DOCTYPE html>
<title>Text Formatting</title>


<b>Bold text</b>
<i>Italic text</i>
<u>Underlined text</u>
<b><u><i>This is Mixed Line</i></u></b>


Output of this code will look like this: