Pr.Pg Next Pg

<CENTER> </CENTER> tag tutorials

  • This is a paired tag element. It requires opening and closing tag. Text written between these two tags gets displayed in CENTER of the Screen.

NOTE: <CENTER> tag do not require <BR> at end of the line.

 

Syntax:

<body>

<center>some text</center>

</body>

 

Example: HTML program to demonstrate center tag

Output:
Pr.Pg border                                              Next Pg