CENTER (<center>) Tag

by Jai 10-Jun-19

0 759

The <center> tag is a block-level element consists of both block level as well as inline content inside it. The <center> tag is used to center-align contents such as text, graphic elements, tables, etc. The content written between the <center> tag will be displayed at the central of the page.

You can also use CSS property i.e. text-align: center; to center-align content.

The <center> tag is not supported in HTML5.

<center> </center>  where, contents is written between start and end tag.


<!DOCTYPE html>
<title> The Center Tag </title>
<h2> Example of Center Tag </h2>
<center> This content is displayed in the middle of page,
but You can use CSS property to align the content. </center>
<p><b>Notes:</b> The center tag is not supported in HTML5. </p>


CENTER (<center>) Tag


Leave a Reply

    Waiting for your comments