What is the label of center?

云罗郡主
Release: 2019-01-30 14:10:44
Original
6529 people have browsed it

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>
Copy after login


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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template