Things to pay special attention to when using XHTML1.0 Strict_Experience exchange

WBOY
Release: 2016-05-16 12:10:13
Original
1539 people have browsed it

Always use lowercase letters and put quotes around attributes: all element and attribute names must be in lowercase, and all attribute values ​​must be in double quotes.

Incorrect:
Correct:


Close all elements: In HTML some elements do not need to be closed. When the next element starts, the previous element is automatically closed. This is not allowed in XHTML. All elements must be closed, even if there is no content (such as Things to pay special attention to when using XHTML1.0 Strict_Experience exchange)

Error:

  • Item 1
    Correct:
  • Item 1


  • Error : Lorem iPSum Dolor Sit Amet, Consectetuer Adipiscing Elit.

    Correct:
    Lorem IPSUM DOLOR SIT AMET, Consectetuer Adipiscip Elit.确>

    Correct :



    Error:

    Correct:


    Attributes cannot be shortened: In HTML, some attributes can be shortened. XHTML doesn't allow this. Things to pay special attention to when using XHTML1.0 Strict_Experience exchange
    Incorrect: Things to pay special attention to when using XHTML1.0 Strict_Experience exchange
    Correct:


    Do not use excluded elements: Some elements and attributes are allowed in HTML 4.01 Transitional and XHTML 1.0 Transitional, and It is not supported under XHTML 1.0 Strict (and in HTML 4.01 Strict). Such as ,
    , alink, align, width, height (for some elements) and background.
    Span elements are not allowed if they are missing one of the following opening tags: "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre ", "address", "fieldset", "ins", "del"
    Form (form elements must exist within the container):

    Error




    Correct




    source:php.cn
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template