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