Header with Branding and Primary Nav

Header with Branding and Primary Nav

Hard HTML Semantic HTML 21 views
Explanation Complexity

Problem Statement

Create a header with a brand link 'meetcode' and a primary nav labeled with aria-label.

Input Format

No input.

Output Format

Print the HTML code.

Constraints

Use header + nav with aria-label.

Input / Output Format

Input Format
No input.
Output Format
Print the HTML code.
Constraints
Use header + nav with aria-label.

Examples

Input:
Output:
(HTML code)

Example Solution (Public)

HTML
<!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>

Official Solution Code

<!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>
Please login to submit solutions.
Editor
Output

                                        
Please login to submit solutions.