Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Der Titel des Dokuments</title> <style> input::-moz-selection{ color: #1c87c9; background-color: #eee; } input::selection{ color: #1c87c9; background-color: #eee; } textarea::-moz-selection{ color: white; background-color: #8ebf42; } textarea::selection{ color: white; background-color: #8ebf42; } </style> </head> <body> <p>Input element</p> <form><input type="text" value="Wählen Sie den Eingabetext aus" /></form> <p>Textarea Element</p> <textarea rows="5" cols="25">Wählen Sie den Textarea-Text aus</textarea> </body> </html>