Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <h1>The option label attribute</h1> <label for="cars">Choose a car:</label> <select id="cars"> <option label="Volvo">Volvo (Latin for "I roll")</option> <option label="Saab">Saab (Swedish Aeroplane AB)</option> <option label="Mercedes">Mercedes (Mercedes-Benz)</option> <option label="Audi">Audi (Auto Union Deutschland Ingolstadt)</option> </select> <p><strong>Note:</strong> The option's label attribute is not supported in Firefox.</p> </body> </html>