Diagram to HTML Tree
HTML
Medium
3 views
Problem Description
Convert this tree into HTML: root body has header(h1), main(p), footer(p).
Output Format
Print the HTML code.
Constraints
Follow the structure exactly.
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>
<h1>meetcode</h1>
</header>
<main>
<p>Practice starts here.</p>
</main>
<footer>
<p>Thanks for visiting meetcode.</p>
</footer>
</body>
</html>
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!