Home  >  Article  >  Web Front-end  >  Detailed explanation of

Detailed explanation of

黄舟
黄舟Original
2017-07-03 10:04:1018039browse

HTML

Example

A selection list with four options:

<select>
  <option>沃尔沃</option>
  <option>萨博</option>
  <option>奔驰</option>
  <option>奥迪</option>
</select>

Definition and usage

Browser support

IE Firefox Chrome Safari Opera

All major browsers support the

Differences between HTML and XHTML

In HTML, the

In XHTML, the

Tips and Notes

Tips: When the selection list is very long, you can use the tag to gather related options to form an option group.

OptionalAttributes

The DTD column indicates which document types support this attribute. S=Strict, T=Transitional, F=Frameset.

Detailed explanation of <option> tag in html

[The lable attribute is not supported in some browsers, such as firefox]

[The value attribute is required when submitting a form in the firefox browser. Specify, even if there is no need to submit data, value="" should be specified for it, otherwise an exception will be thrown during JSPdevelopment

Core attributes

Detailed explanation of <option> tag in html

##EventsProperties

The above is the detailed content of Detailed explanation of

Statement:
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