center tag in html

The <center> tag is not supported in HTML5. Use CSS instead.
The <center> tag is used to center-align text.



<!DOCTYPE html>
<html>
<body>

<p>This is some text.</p>
<center>This text will be center-aligned.</center>
<p>This is some text.</p>

<p>The center element is not supported in HTML5. Use CSS instead.</p>

</body>
</html>


Output:
This is some text.
This text will be center-aligned.
This is some text.
The center element is not supported in HTML5. Use CSS instead.

Comments

Popular posts from this blog

Headings In HTML

Introduction and Format of HTML

Font Tag