XTML

XTML Profile

  I have a simple understanding is XML (HTML5 previous version) specification more than HTML, but also good for compatibility with different devices. For specific information can refer to HTML, and XHTML What is the difference? XHTML What are the characteristics? Here knowledge simply say differences in some of the more important tasks

The main difference

  • Attribute names must be lowercase 
  • Attribute values ​​must be quoted
  • Property can not be abbreviated:
    <input checked/>(✖️)
    <input checked="checked" />(✔️)
  • Id attribute by attribute name instead of
    <p name="flag" />(✖️)
    <p id="flag" />(✖️)
  • XHTML DTD defines mandatory use of HTML elements
    all documents must be XHTML document type declaration (DOCTYPE declaration). There must be html, head, body elements in XHTML documents, which must be in the title element in the head element.

Three document types

  XHTML 1.0 Strict

  XHTML 1.0 Transitional

  XHTML 1.0 Frameset

  They can refer to specific differences docconf

Guess you like

Origin www.cnblogs.com/im73/p/11752527.html