<option> HTML Tag

In this article we will discuss about how to use the option Tag in HTML.
  • 1715

The <option> Tag comes under <select> tag and this tag allow you to define option items within the select list.

HTML Code:

<html>

<head>

    <title>This is my first web page</title>

</head>

<body>

    <select>

        <option>--select--</option>

        <option>TV</option>

        <option>Freeze</option>

        <option>AC</option>

        <option>Cooler</option>

    </select>

</body>

</html>

Output:
optiontag.jpg 


Ask Your Question 

Got a programming related question? You may want to post your question here
 
Programming Answers here
© 2019 DotNetHeaven. All rights reserved.