Skip to content
  • Home
  • About
  • No Access
  • Privacy Policy
Bits of .NET
Bits of .NET
  • C#
  • Asp.Net Core
  • SQL
  • Windows
  • WordPress
  • AI
  • JavaScript
  • CSS
  • MORE
    • HTML
    • Ajax
    • Git
    • Docker
    • Kubernetes
    • Photoshop
    • Visual Studio

Bits of .NET

Daily micro-tips for C#, SQL, performance, and scalable backend engineering.

  • C#
  • Asp.Net Core
  • SQL
  • Windows
  • WordPress
  • AI
  • JavaScript
  • CSS
  • MORE
    • HTML
    • Ajax
    • Git
    • Docker
    • Kubernetes
    • Photoshop
    • Visual Studio
HTML

HTML: Building a Blog Layout with Semantic HTML

- 15.08.26 - ErcanOPAK

📰 Blog Layout = Semantic HTML

Blogs need structure. Semantic HTML creates accessible, SEO-friendly blog layouts.

📝 Blog Layout Structure

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>My Blog</title>
</head>
<body>
    <header role="banner">
        <h1>My Blog</h1>
        <nav role="navigation" aria-label="Main Navigation">
            <ul>
                <li><a href="/">Home</a></li>
                <li><a href="/blog">Blog</a></li>
                <li><a href="/about">About</a></li>
                <li><a href="/contact">Contact</a></li>
            </ul>
        </nav>
    </header>

    <main role="main">
        <article>
            <header>
                <h2>Blog Post Title</h2>
                <time datetime="2024-01-15">January 15, 2024</time>
                <address>By <a href="/author">John Doe</a></address>
            </header>

            <section>
                <h3>Introduction</h3>
                <p>Lorem ipsum...</p>
            </section>

            <section>
                <h3>Main Content</h3>
                <figure>
                    <img src="image.jpg" alt="Description">
                    <figcaption>Image caption</figcaption>
                </figure>
                <p>Content...</p>
            </section>

            <footer>
                <p>Category: <a href="/category">Category</a></p>
                <p>Tags: <a href="/tag">Tag1</a>, <a href="/tag">Tag2</a></p>
            </footer>
        </article>

        <aside role="complementary">
            <h2>Related Posts</h2>
            <ul>
                <li><a href="/post-1">Post 1</a></li>
                <li><a href="/post-2">Post 2</a></li>
            </ul>
        </aside>
    </main>

    <footer role="contentinfo">
        <p>&copy; 2024 My Blog</p>
        <nav role="navigation" aria-label="Footer Navigation">
            <ul>
                <li><a href="/privacy">Privacy</a></li>
                <li><a href="/terms">Terms</a></li>
            </ul>
        </nav>
    </footer>
</body>

🎯 SEO Optimization

<!-- SEO Best Practices -->
<article>
    <header>
        <h1>Article Title (SEO) </h1>
        <time datetime="2024-01-15">Published Jan 15, 2024</time>
        <meta property="article:published_time" content="2024-01-15T10:00:00Z">
        <meta property="article:author" content="John Doe">
    </header>

    <section>
        <!-- Use headings properly -->
        <h2>Section Heading</h2>
        <h3>Subsection Heading</h3>
        
        <!-- Use strong/em for emphasis -->
        <p>This is <strong>important</strong> content.</p>
        
        <!-- Use lists -->
        <ul>
            <li>Item 1</li>
            <li>Item 2</li>
        </ul>
    </section>

    <!-- Related content -->
    <aside role="complementary" aria-labelledby="related-title">
        <h2 id="related-title">Related Posts</h2>
    </aside>
</article>

<!-- Comments Section -->
<section aria-labelledby="comments-title">
    <h2 id="comments-title">Comments</h2>
    <article class="comment">
        <header>
            <span>Commenter Name</span>
            <time datetime="2024-01-15T11:00:00Z">Posted 1 hour ago</time>
        </header>
        <p>Comment text...</p>
    </article>
</section>

💡 Blog Layout Tips

  • Use proper heading hierarchy
  • Use semantic elements for structure
  • Add structured data
  • Optimize images with alt text
  • Use ARIA labels for navigation

Semantic HTML is the foundation of accessible, SEO-friendly blogs. It ensures your content reaches the right audience.

— SEO Specialist

Related posts:

HTML5: Fix the download Attribute on a Link Being Silently Ignored for Cross-Origin URLs

HTML5: Fix the download Attribute on a Link Being Silently Ignored for Cross-Origin URLs

HTML5: Fix a Details Toggle Not Reaching an Assistive Reader

HTML5: Fix a Details Toggle Not Reaching an Assistive Reader

HTML: Use Forms to Collect User Input

HTML: Use Forms to Collect User Input

Views: 11
Found this useful? Share it
XLinkedInWhatsApp

Post navigation

CSS: Responsive Typography with Fluid Font Sizes
JavaScript: Working with LocalStorage for Data Persistence

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Most Read

  1. 01How to make theater mode the default for Youtube 1,079 views
  2. 02How to add default value for Entity Framework migrations for DateTime and Bool 997 views
  3. 03Get the User Name and Domain Name from an Email Address in SQL 996 views
  4. 04Get the First and Last Word from a String or Sentence in SQL 873 views
  5. 05How to select distinct rows in a datatable in C# 868 views
  6. 06How to enable, disable and check if Service Broker is enabled on a database in SQL Server 671 views
  7. 07Add Constraint to SQL Table to ensure email contains @ 631 views
  8. 08Average of all values in a column that are not zero in SQL 584 views
  9. 09How to use Map Mode for Vertical Scroll Mode in Visual Studio 562 views
Bits of .NET

Daily micro-tips for C#, SQL, performance, and scalable backend engineering.

Social

  • ErcanOPAK.com
  • GoodReads
  • LetterBoxD
  • Linkedin
  • The Blog
  • Twitter
Back to top
© 2026 Bits of .NET | Built with Xblog Plus free WordPress theme by wpthemespace.com