Home >Web Front-end >HTML Tutorial >What is the label of center?

What is the label of center?

云罗郡主
云罗郡主Original
2019-01-30 14:10:446546browse

What is the label

center?

What is the label of center?

Function: Horizontally center the included text. Currently, all major browsers support the center tag. [Recommended reading: HTML video tutorial]

Note: Please use CSS styles to center the text!

Note: In HTML 4.01, the center element is deprecated. In XHTML 1.0 Strict DTD, the center element is not supported.

html center tag example

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<center>这是需要居中的内容</center>
</body>
</html>


The above is the detailed content of What is the label of center?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn