Home >Web Front-end >HTML Tutorial >What is the label of center?
What is the label
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!