Attribute Selector
CSS
Medium
2 views
Problem Description
Style only inputs with type='search'.
Output Format
Print the HTML+CSS code in one block.
Constraints
Use an attribute selector.
Official Solution
<!doctype html>
<html lang='en'>
<head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<title>meetcode</title>
<style>
input[type='search'] { border: 2px solid #0b5; padding: 8px 10px; border-radius: 10px; }
</style>
</head>
<body>
<form action='#'>
<input type='search' name='q' placeholder='Search meetcode'>
<input type='text' name='name' placeholder='Name'>
</form>
</body>
</html>
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!