HTML center tag

<center> tag in HTML

The <center> tag is used to align the text to center position.

Example

Try Yourself

Using css property instead of <center> tag

HTML5 doesnt support <center> tag, so instead of it we can align the text using text-align css property.

Example

Try Yourself