ID Selector for Header
CSS
Easy
3 views
Problem Description
Give the header an id and style it with #siteHeader.
Output Format
Print the HTML+CSS code in one block.
Constraints
Use an id selector once.
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>
#siteHeader { background: #111; color: #fff; padding: 12px; }
#siteHeader a { color: #fff; text-decoration: none; font-weight: 600; }
</style>
</head>
<body>
<header id='siteHeader'>
<a href='#'>meetcode</a>
</header>
</body>
</html>
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!