Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Example of CSS Attribute Selector</title> <style> input[type="text"], input[type="password"] { width: 150px; display: block; margin-bottom: 10px; background: yellow; } input[type="submit"] { padding: 2px 10px; border: 1px solid #804040; background: #ff8040; } </style> </head> <body> <form> <label>Username: <input type="text"></label> <label>Password: <input type="password"></label> <input type="submit" value="Login"> </form> </body> </html>