Web page Standard beginner: CSS and XHTML

Source: Internet
Author: User
Tags continue
css|xhtml| Standard | beginners | Web page

Cascading style sheet Level 2 the recommended standard [CSS2] defines the properties of style, which is used to parse the tree structure of HTML and XML documents. An analysis of the impassability will result in different visual or auditory effects, depending on the selector used. The following techniques can reduce this effect on a document without modifying the two media types:

XHTML CSS style sheets should be in lowercase elements and attribute names.

In the table, the TBODY element is inferred by the parser of the HTML user agent, but the parser for the XML user agent does not do so. So if you want to be referenced in a CSS selector, you should always add tbody elements clearly.

In the XHTML name address space, the user agent will recognize the "id" attribute as an attribute of an ID type. Therefore, even if the user agent does not recognize the DTD, the style sheet should be able to continue to use "#" to simplify the selector syntax.

In the XHTML name address space, the user agent will recognize the class attribute, so the style sheet should be able to construct the continue use of "." Simplifies selector syntax.

CSS defines different conformance criteria for HTML and XML documents; An XML rule is used when an XHTML document is expressed in HTML, in HTML rules, in an XHTML document in XML.



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.