Problem Statement
Build a simple webpage structure with a header, main content, and footer using HTML5 semantic elements.
Explanation
A well-structured webpage uses semantic elements to define distinct sections like header, main, and footer. This enhances readability, accessibility, and SEO. Use <header> for the site header, <main> for the main content area, and <footer> for closing information.
Code Solution
SolutionRead Only
<!DOCTYPE html> <html lang="en"> <head><title>Simple Page</title></head> <body> <header><h1>Website Header</h1></header> <main><p>Main content goes here.</p></main> <footer><p>© 2025 Company</p></footer> </body> </html>
Practice Sets
This question appears in the following practice sets:
