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.