<center> tag

HTML <center> tag

It is better to use CSS text align because the <center> tag is not supported in HTML5.

The <center> tag helps to align the text towards the center of the line.

You can also refer CSS Text to apply other text affects along with alignment.

The Syntax of Linear Gradient:
<center>text here…</center>

Example

<center>Text goes to center</center>

Default CSS value

NONE

How Browser will display

BLOCK Level.

Difference between HTML4.01, XHTML and HTML5

HTML4 XHTML HTML5
Deprecated Deprecated in XHTML1 obsolete

Attributes used with <center>tag

NONE

Supporting Browsers

supporting-browsers for tags

Related Tags

There are no tags which are directly related to this tag.

Use CSS Text or CSS  text-align property.

Tutorials for all brains!