Search Here

Text Formatting in HTML


<!DOCTYPE html>
<html>
<head>
    <title>Text Formatting</title>
</head>
<body>
    <!-- <br> is used to print a newline -->
    This is normal text.
    <b>This text is bold</b>
    <br>
    <i>This text is italic</i>
    <br>
    <u>This text is underlined</u>
    <br>
    <strong>This text is strong</strong>
    <br>
    <em>This text is emphasized</em>
    <br>
    This text is <small>Small</small>
    <br>
    This text is <mark>Marked</mark>
    <br>
    <del>This text is deleted</del>
    <br>
    <ins>This text is inserted</ins>
    <br>
    <sub>This text is subscript</sub>
    <br>
    <sup>This text is superscript</sup>
</body>
</html>


Text Formatting in HTML
Output

No comments:

Post a Comment