-->

HTML option Tag


HTML <option> tag

HTML <option> tag


HTML option tag: 

This is a double tag. <option> This is the beginning tag and </option>  this is the closing  tag. This <option> element defines an option list. This <option> using for making drop-down option list .The <option> tag used inside the <select> and <detalist> tag.





<option>=option list.
Copy this code and past your page.








Example:

Result:





Support Browser
HTML <option> tag
Browser
HTML <option> tag
Google 
 Chrome  
HTML <option> tag
Internet
Explorer
HTML <option> tag
Firefox
HTML <option> tag
Opera  
HTML <option> tag
 Safari   
<option>
YesYes Yes Yes Yes



  • Elements Attributes:  disabled, label, selected, value etc.



    • Html Version Differenc: Differences Between HTML 5 and 4.01. 

    None.


    Note: This <option> tag can not use without any attributes, but you generally need the value attribute, which indicates what is sent to the server.



    If you want to make drop-down list using HTML code, Use HTML<option> element.


    1. What is the <option> tag ?

    2. What is the  <option> tag using for ?

    3. What is the definition of <option> tag ?

    4. What is the <option> tag mean ?

    5.How can You make drop-down list ? 

    Facebook Comments

    Follow by Email