Nine issues to be noted in XHTML1.0 and CSS standards

Source: Internet
Author: User
Tags character set

What is wrong with the statement in <div class=tzh>i am tzh!</div>?

Punctuation problem. This is actually the most easy to ignore the problem, in fact, is a small two quotes, it caused this error. Although many browsers still recognize rendering correctly without quotes. However, it is impossible to pass the strict international standard of XHTML, please remember that the sign must be followed by the number. Correct wording: <div class= "Tzh" >i am tzh!</div>

What is wrong with the statement in the <span class= "Tzh" >tzh is me!</span>?

Case note. This, like the first question, is a particularly easy to overlook detail issue. Uppercase is absolutely not allowed in the standard of the consortium, and I still remember that when I was testing a piece of JavaScript code, I was judged to be mistaken for the onload I had written at a glance, because l could not capitalize. Correct wording: <span class= "Tzh" >tzh is me!</span>

Third, what is wrong with the statement in <p>i am Tzh!</p><br><p>tzh is me!</p>?

<br/> Label problem. For forced-wrap labels <br/>, many beginners can not tell the difference between it and <br>, even in the FCKeditor editor sometimes out of a <br> to act as <br/>. Although the same many browsers can automatically correct error, the <br> as <br/> recognition. But the best way to edit or recommend that you use Dreamweaver for editing, when you press Ctrl+enter, will automatically write a <br/>. Correct wording: <p>i am tzh!</p><br/><p>tzh is me!</p>

Iv.

Note that after the tag end of the punctuation, a lot of tags can not be followed by special punctuation, such as here, "~" wave, but you have to ask, how can I use it? Then use the ISO Latin-1 character set (ISO Latin-1 Character set), where you find the "~" wave corresponding to the character set decimal encoding is ~, and then use this decimal code instead of the ~ wave number, remember that the last semicolon can not be lost. In the ISO Latin-1 character set, a named entity (Named entity) is preferred, decimal code (decimal code) Second, that is, a symbol takes precedence over a named entity rather than a decimal encoding when it has both decimal-encoded and named entities.

What are the errors in the <form id= "54tzh" ></form> this statement?

Note the ID and class special case. The XHTML1.0 standard stipulates that in ID or class, the first character cannot be numeric and must be a letter. Correct wording: <form id= "tzh45" ></form>

What are the errors in the this statement?

label note. The XHTML1.0 standard of the Consortium stipulates that the ALT element must be included in the label. Correct wording:

What are the errors in the <script language= "JavaScript" > this statement?

< script> label Note. The XHTML1.0 standard stipulates that the type element must be included in the label. Correct wording: <script language= "JavaScript" type=text/javascript>

Viii. what is wrong with the statement in <div>

Note that the label begins at the end of the order. Correct wording: <div>

Nine, in addition to the above, also need to pay attention to what problems?

Note the special suit. such as:<dl><dd><ul> <li> some special labels, the package order is indispensable. The <dl><dd><ul>< li> Four labels must be written in order. There are a lot of similar.

Note the label is not open. The so-called did not open from the detection of the consortium, this type of error is displayed error is not open, translation is not open meaning. If you understand the meaning of Chinese, there is a first or a tail without a head. Often this error occurs because a piece of code is deleted at the time of modification without regard to the relatively distant end or start tag.

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.