Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Der Titel des Dokuments</title> <style> select:required:invalid { color: #666; } option[value=""][disabled] { display: none; } option { color: #000; } </style> </head> <body> <h2>Box mit Platzhalter auswählen</h2> <select name="drinks" required> <option value="" disabled selected>Getränk wählen</option> <option value="coffee">Kaffee</option> <option value="tea">Tee</option> <option value="milk">Milch</option> </select> </body> </html>