HTML Editor
<!DOCTYPE html> <html lang="en-US"> <body> <form action="/fruits.php" method="get"> <select name="myFruit"> <option label="Apple">Red(color)</option> <option label="Banana">Yellow(color)</option> <option label="Sapodilla">Brown(color)</option> </select> <button type="submit">Button</button> </form> <p><strong>Note: </strong>Though it displays label value to the user. While submitting, the text which is sandwiched between the option tag alone will be submitted.</p> </body> </html>
OUTPUT
×

Save as Private