Option HTML
HTML <option> Tag Within a <select> or <datalist> element, we can define options in a dropdown list using the HTML <option> tag. Each dropdown list in HTML contains at least one <option> element. Syntax: <option value=””>…..</option> Example: <!DOCTYPE html> <html> <body> <h3> Select an Option:</h3> <select> <option value=”Apple”>Apple</option> <option value=”Mango”>Mango</option> <option value=”Pineapple”>Pineapple</option> <option value=”Papaya”>Papaya</option> </select> … Read more