Accessible Landmark Order

Accessible Landmark Order

Medium HTML Semantic HTML 22 views
Explanation Complexity

Problem Statement

Create page landmarks in a logical order: header, nav, main, footer.

Input Format

No input.

Output Format

Print the HTML code.

Constraints

Keep order simple and readable.

Input / Output Format

Input Format
No input.
Output Format
Print the HTML code.
Constraints
Keep order simple and readable.

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>
    <h1>meetcode</h1>
  </header>
  <nav>
    <a href='#'>Topics</a>
  </nav>
  <main>
    <p>Choose a topic.</p>
  </main>
  <footer>
    <p>meetcode</p>
  </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>
    <h1>meetcode</h1>
  </header>
  <nav>
    <a href='#'>Topics</a>
  </nav>
  <main>
    <p>Choose a topic.</p>
  </main>
  <footer>
    <p>meetcode</p>
  </footer>
</body>
</html>
Please login to submit solutions.
Editor
Output

                                        
Please login to submit solutions.