Multiple Nav Areas

Multiple Nav Areas

Hard HTML Semantic HTML 21 views
Explanation Complexity

Problem Statement

Create one nav in header and one nav in footer, both labeled with aria-label.

Input Format

No input.

Output Format

Print the HTML code.

Constraints

Use aria-label to explain purpose.

Input / Output Format

Input Format
No input.
Output Format
Print the HTML code.
Constraints
Use aria-label to explain purpose.

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>
    <nav aria-label='Primary'>
      <a href='#'>Home</a>
      <a href='#'>Topics</a>
    </nav>
  </header>
  <main>
    <p>Welcome to meetcode.</p>
  </main>
  <footer>
    <nav aria-label='Footer'>
      <a href='#'>Privacy</a>
      <a href='#'>Contact</a>
    </nav>
  </footer>
</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>
    <nav aria-label='Primary'>
      <a href='#'>Home</a>
      <a href='#'>Topics</a>
    </nav>
  </header>
  <main>
    <p>Welcome to meetcode.</p>
  </main>
  <footer>
    <nav aria-label='Footer'>
      <a href='#'>Privacy</a>
      <a href='#'>Contact</a>
    </nav>
  </footer>
</body>
</html>
Please login to submit solutions.
Editor
Output

                                        
Please login to submit solutions.