HTML program using a semantic layout
Q. Write an HTML program that uses a semantic layout with <header>, <main>, and <footer>.
<!DOCTYPE html>
<html>
<head><title>Semantic Page</title></head>
<body>
<header>
<h1>My Blog</h1>
</header>
<main>
<article>
<h2>Post Title</h2>
<p>This is the content of the blog post.</p>
</article>
</main>
<footer>
<p>© 2025 My Blog</p>
</footer>
</body>
</html>
Quickly Find What You Are Looking For
OnlineTpoint is a website that is meant to offer basic knowledge, practice and learning materials. Though all the examples have been tested and verified, we cannot ensure the correctness or completeness of all the information on our website. All contents published on this website are subject to copyright and are owned by OnlineTpoint. By using this website, you agree that you have read and understood our Terms of Use, Cookie Policy and Privacy Policy.
point.com