Home  >  Article  >  Web Front-end  >  What does option mean in html?

What does option mean in html?

云罗郡主
云罗郡主Original
2019-02-15 11:52:4311655browse

What does option mean in html?

Function: Define an option (an item) in the drop-down list.

Description: The browser displays the content in the 5a07473c87748fb1bf73f23d45547ab8 tag as a menu or an element in the scrolling list of the 221f08282418e2996498697df914ce4e tag.

The option element is located inside the select element.

Note: The 5a07473c87748fb1bf73f23d45547ab8 tag can be used without any attributes, but you usually need to use the value attribute, which indicates what is being sent to the server. Please use this tag with select elements, otherwise this tag is meaningless.

html option tag example

<!DOCTYPE html>
<html>
<body>
<select>
    <option>peter_zhu</option>
    <option>西门大官人</option>
    <option>灭绝师太</option>
    <option>无忌哥哥</option>
</select>
<p>option标签用于下拉列表中的元素</p>
</body>
</html>


The above is the detailed content of What does option mean in html?. For more information, please follow other related articles on the PHP Chinese website!

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
Previous article:What is the ol tag?Next article:What is the ol tag?