Wednesday, May 28, 2025

 Here’s a simple and clean HTML blog template you can use as a starting point for a personal blog. This includes basic sections like a header, main content area, and footer.


✅ Simple Blog Template (HTML + Basic CSS)

html
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>My Simple Blog</title> <style> body { font-family: Arial, sans-serif; background-color: #f9f9f9; margin: 0; padding: 0; } header { background-color: #333; color: white; padding: 20px; text-align: center; } nav { background-color: #444; padding: 10px; text-align: center; } nav a { color: white; margin: 0 15px; text-decoration: none; } main { max-width: 800px; margin: 30px auto; padding: 0 20px; background: white; border-radius: 8px; box-shadow: 0 0 10px rgba(0,0,0,0.1); } article { padding: 20px 0; border-bottom: 1px solid #eee; } article:last-child { border-bottom: none; } h2 { color: #333; } footer { background-color: #333; color: white; text-align: center; padding: 15px; margin-top: 40px; } </style> </head> <body> <header> <h1>Welcome to My Blog</h1> <p>Sharing thoughts, ideas, and stories</p> </header> <nav> <a href="#">Home</a> <a href="#">About</a> <a href="#">Contact</a> </nav> <main> <article> <h2>First Blog Post</h2> <p><strong>Date:</strong> May 28, 2025</p> <p>This is the content of the first blog post. Here you can share your thoughts, stories, or anything interesting.</p> </article> <article> <h2>Second Blog Post</h2> <p><strong>Date:</strong> May 25, 2025</p> <p>This is the second post. You can add images, links, or even videos to make your blog more interactive.</p> </article> </main> <footer> &copy; 2025 My Simple Blog. All rights reserved. </footer> </body> </html>

🛠️ Tips to Expand

  • Add more blog posts in the <main> section using more <article> blocks.

  • Add a comment section with JavaScript or embed from Disqus.

  • Use external CSS for better maintainability.

  • Add categories or tags for posts.

Would you like this converted into a full project folder with images, stylesheets, and navigation pages too?

Is this conversation helpful so far?

No comments:

Post a Comment

web development

 Here’s a simple and clean HTML blog template you can use as a starting point for a personal blog. This includes basic sections like a head...