Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> input[name="age"] { width: 50px; } </style> </head> <body> <h1>Example of applying a CSS style to the element name:</h1> <form> <input type="text" placeholder="Name"> <input type="number" name="age" min="0" placeholder="Age"> </form> </body> </html>