Header with Branding and Primary Nav
HTML
Hard
3 views
Problem Description
Create a header with a brand link 'meetcode' and a primary nav labeled with aria-label.
Output Format
Print the HTML code.
Constraints
Use header + nav with aria-label.
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>
</head>
<body>
<header>
<a href='/' aria-label='meetcode home'>meetcode</a>
<nav aria-label='Primary navigation'>
<a href='#'>Topics</a>
<a href='#'>Practice</a>
<a href='#'>Login</a>
</nav>
</header>
<main>
<p>Start a practice session on meetcode.</p>
</main>
</body>
</html>
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!