Precautions for CSS

Source: Internet
Author: User
Precautions for CSS
1 Annotations cannot be nested, or problems may occur.
2. If you can set the height, you must set the height.
3 In addition, it is best to add: To avoid browser differences
<! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en"

Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd>

4. A tag (to disable other tags)

Differences between name and ID
Differences and Similarities between form names and IDs
Published on: 2007-12-9 |

The name and ID of the form are the same meaning, both to mark the object name. They are different: the name is Netscape, And the ID is

Microsoft.

Form input textarea select and IFRAME frame use name.

These elements are related to the submission of forms (framework elements act on the target of the form,

Only elements with names are received on the form receiving page.

The element assigned with ID cannot receive the value through the form. You can verify it yourself.

Of course, the above elements can also be assigned an id value. The method for referencing these elements when assigning an id value will be changed.

Assigned name: Document. formname. inputname document. Frames ("framename ")

Assigned ID: Document. All. inputid document. All. frameid

Only elements with ID and no name can be assigned: (only elements related to the form can be assigned ID)

Body Li a table tr TD th P Div Span Pre dl dt dd font B and so on

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.