tags:

views:

131

answers:

4

I see this in a website for the first time of life.

Is it supported by all browsers?

+6  A: 

It's deprecated as of HTML 4.01 and not supported in XHTML 1.0. Major browsers will support it though.

Bernard Chen
+2  A: 

It's deprecated. Use CSS to center elements. It is supported in all major browsers though...

Swingley
+2  A: 

<center> is not part of the HTML 4.01 standard, so it's likely that some browsers wouldn't understand it.

The more correct way to center text uses the CSS text-align property.

If a browser doesn't understand a tag, it should ignore that tag. So, even if a browser doesn't understand <center>, it should not ruin the web page.

Chip Uni
A: 

center tag puts the content in the middle of the line. It's kind of old-fashioned. CSS can do this well.

fwoncn