HTML <center> Tag

Advertisements


Description

The HTML <center> tag is used for centering the content enclosed with this tag. This tag is depreciated.

Example

<!DOCTYPE html>
<html>
<head>
<title>HTML center Tag</title>
</head>
<body>
<center>This text is centered</center>
</body>
</html>

This will produce following result:

This text is centered

Global Attributes

This tag supports all the global attributes described in - HTML Attribute Reference

Event Attributes

This tag supports all the event attributes described in - HTML Events Reference

Browser Support

ChromeFirefoxIEOperaSafariAndroid
YesYesYesYesYes?

html_tags_reference.htm

Advertisements