Explore a little.C ProgrammingC++HTMLVisual BasicSystem AnalysisE-CommerceBCA Notes
LEARN SOMETHING NEW

Text formatting in HTML

Read4BCA learning libraryFree access

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>

Example:

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

<body>

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

</body>
</html>

Output of this code will look like this:

Text formatting in HTML example

This lesson preserves the original Read4BCA material. Some programming examples use older tools and syntax. View original page.