HTML
tag (Not Supported in HTML5)

The HTML

is a block level element which contains both block level and inline contents within it. The content written between the
elements will be displayed at the middle of the page.

The

tag has been deprecated in HTML 4 and obsolete in HTML5.

NOTE: The
tag is deprecated now so instead of that you can use CSS property text-align: center; to achieve the same result.

Syntax

Following are some specifications about the

tag

Display Inline
Start tag/End tag Both start and End tag
Usage textual

Example

Using

tag

Test it Now

Using CSS

Test it Now

Output:

HTML center tag

Attribute

HTML

tag does not contain any specific attribute in HTML but it supports the Global Attribute (till
tag is not removed completely).

Supporting Browsers

Element chrome browser Chrome ie browser IE firefox browser Firefox opera browser Opera safari browser Safari
Yes Yes Yes Yes Yes
Next TopicHTML cite Tag




Contact US

Email:[email protected]

HTML center Tag
10/30