Menu ▼

Previous Next

Select :

select control will allow user to select one option among many.

Syntax :

<select><option value="value">text</option></select>


Example :

<html>

<head>

    <title>HTML Tutorial</title>

</head>

<body>

    Select country :

    <select>

        <option value="Select">Select</option>

        <option value="India">India</option>

        <option value="USA">USA</option>

        <option value="UK">UK</option>

    </select>

</body>

</html>


Output :
HTML Tutorial Select country :
Previous Next




Search dotnetlearners.com