CodeLab
Tutorials For Everyone
Run
<!DOCTYPE html> <html> <head> <title>HTML Form Menu Control Example</title> </head> <body> <h3>HTML Form Menu Control Example</h3> Please select your favorite City from the dropdown list. <form action='/form-submit/'> <label for="city">Choose a City:</label> <select name="city" id="city"> <optgroup label="USA"> <option value="new-york">New York</option> <option value="california">California</option> <option value="washington">Washington</option> </optgroup> <optgroup label="UK"> <option value="london">London</option> <option value="manchester">Manchester</option> <option value="birmingham">Birmigham</option> </optgroup> </select> <br> <input type="submit" value="Submit"> </form> </body> </html>