Avoid Div Soup

Avoid Div Soup

Hard HTML Semantic HTML 25 views
Explanation Complexity

Problem Statement

Rebuild a simple layout using semantic tags instead of many divs: header, main, footer.

Input Format

No input.

Output Format

Print the HTML code.

Constraints

Prefer semantic tags.

Input / Output Format

Input Format
No input.
Output Format
Print the HTML code.
Constraints
Prefer semantic tags.

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>
  <main>
    <section>
      <h2>Topics</h2>
    </section>
  </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>
  <main>
    <section>
      <h2>Topics</h2>
    </section>
  </main>
  <footer>
    <p>meetcode</p>
  </footer>
</body>
</html>
Please login to submit solutions.
Editor
Output

                                        
Please login to submit solutions.