Html
Tags are not supported in HTML5, use CSS to center the text. __html

Source: Internet
Author: User

HTML tags
Browser support
IE Firefox Chrome Safari Opera
tags are supported in all browsers.

Definitions and usage
Center the text that it contains horizontally.

The difference between HTML and XHTML
In HTML 4.01, the center element is not approved for use.

In the XHTML 1.0 Strict DTD, the center element is not supported.

Tips and Comments:
Remarks: Tip: Use CSS styles to center text.

Standard properties
ID, class, title, style, dir, Lang, Xml:lang
For a complete description, please visit the standard properties.

Event Properties
OnClick, ondblclick, onmousedown, onmouseup, onmouseover,
OnMouseMove, onmouseout, onkeypress, onkeydown, onkeyup
For a complete description, visit the event properties.

HTML 5 Label
Definitions and usage
The label is centered horizontally on the text it encloses.

The difference between HTML 4.01 and HTML 5
In HTML 5, the label is not supported. Please use CSS instead.

Tips and comments
Tip: Use CSS to center your text.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.