Menu ▼

Previous Next

<center> :

<center> tag will be used if the content need to be shown in the middle of the html document.

Syntax :

<center>Content to be centered here...</center>


Example :

<html>

<head>

    <title>HTML Tutorial</title>

</head>

<body>

    <center>

        <p>

            This example will let you know how to center the content.

        </p>

    </center>

</body>

</html>


Output :
HTML Tutorial

This example will let you know how to center the content.

Previous Next




Search dotnetlearners.com