What is a center HTML code?


Quick Answer

The center element in HTML is a block-level element used to horizontally center any content between its tags. Though it was common in early versions of HTML, it has since been depreciated and is in the process of being dropped.

Continue Reading

Full Answer

In the interest of backwards compatibility, most browsers still support the center tag, but it is not recommended on new projects. The preferred method since HTML 4 is to use the CSS text-align property with the "center" value, which is written inside a tag as "text-align:center." The text-align property can also take other values, such as "left", "right" and "justify."

Learn more about E-mail

Related Questions