Falytom logoFALYTOM
Games
ToolsUI ComponentsServicesProductsAbout
LoginSign Up
menu
  1. Home
  2. /Web Development
  3. /Html
  4. /Section Aside
Your Progress0%
0 of 76 completed

Topics

Getting Started

  • What is HTML?
  • How the Web Works
  • Setting Up Your Environment
  • Your First HTML Page

HTML Document Structure

  • The DOCTYPE Declaration
  • The HTML Element
  • The Head Section
  • Meta Tags
  • The Body Element
  • HTML Comments

Text and Formatting

  • Headings (h1-h6)
  • Paragraphs
  • Line Breaks and Horizontal Rules
  • Text Formatting (Bold, Italic, etc.)
  • Quotations and Citations
  • Preformatted Text and Code
  • Subscript and Superscript

Links and Navigation

  • Creating Links
  • Absolute vs Relative URLs
  • Link Targets and Attributes
  • Email and Phone Links
  • Internal Page Links

Images and Media

  • Adding Images
  • Image Attributes
  • Image Formats
  • Figure and Figcaption
  • Responsive Images
  • Audio Elements
  • Video Elements
  • Embedding Content

Lists

  • Unordered Lists
  • Ordered Lists
  • Description Lists
  • Nested Lists

Tables

  • Table Basics
  • Table Headers and Footers
  • Spanning Columns and Rows
  • Table Captions
  • Styling Tables

Forms - Part 1 (Basics)

  • Introduction to Forms
  • Text Input Fields
  • Labels and Placeholders
  • Textarea Element
  • Checkboxes
  • Radio Buttons

Forms - Part 2 (Advanced)

  • Select Dropdowns
  • File Upload Inputs
  • HTML5 Input Types
  • Form Validation
  • Form Buttons
  • Fieldsets and Legends
  • Form Accessibility

Semantic HTML

  • What is Semantic HTML?
  • Header and Footer
  • Nav Element
  • Main and Article
  • Section and Aside
  • Div vs Semantic Elements
  • Time and Mark Elements

HTML5 Features

  • HTML5 Overview
  • Canvas Element
  • SVG in HTML
  • Geolocation API
  • Drag and Drop
  • Local Storage
  • Web Workers

Web Accessibility

  • Introduction to Accessibility
  • ARIA Attributes
  • Keyboard Navigation
  • Alt Text Best Practices
  • Color Contrast and Typography
  • Testing for Accessibility

Best Practices & SEO

  • HTML Best Practices
  • SEO Fundamentals
  • Meta Tags for SEO
  • Structured Data

Section and Aside

Sectioning content and sidebars

The <section> element represents a thematic grouping of content, while <aside> represents content tangentially related to the main content. Both help organize and structure your page semantically.

The Section Element

Use <section> to group related content together. Each section should typically have a heading.

Basic Section Usage

basic-section.html
<main>
  <h1>Complete Guide to Web Development</h1>
  
  <section>
    <h2>Introduction</h2>
    <p>Web development involves creating websites...</p>
  </section>
  
  <section>
    <h2>Getting Started</h2>
    <p>To begin web development, you need...</p>
  </section>
  
  <section>
    <h2>Advanced Topics</h2>
    <p>Once you master the basics...</p>
  </section>
</main>

When to Use Section

  • Chapters or parts of a document
  • Tabbed content sections
  • Thematic groupings in articles
  • Features on a homepage

Homepage Example

homepage-sections.html
<main>
  <!-- Hero section -->
  <section>
    <h1>Welcome to Our Company</h1>
    <p>We provide excellent services worldwide</p>
    <button>Get Started</button>
  </section>
  
  <!-- Features section -->
  <section>
    <h2>Our Features</h2>
    <div>
      <h3>Fast</h3>
      <p>Lightning-fast performance</p>
    </div>
    <div>
      <h3>Secure</h3>
      <p>Industry-leading security</p>
    </div>
    <div>
      <h3>Reliable</h3>
      <p>99.9% uptime guarantee</p>
    </div>
  </section>
  
  <!-- Testimonials section -->
  <section>
    <h2>What Our Clients Say</h2>
    <blockquote>
      <p>"Amazing service!" - John Doe</p>
    </blockquote>
  </section>
</main>

The Aside Element

Use <aside> for content that's indirectly related to the main content—like sidebars, callouts, or related links.

Sidebar Example

sidebar-aside.html
<body>
  <main>
    <article>
      <h1>Understanding JavaScript</h1>
      <p>JavaScript is a programming language...</p>
    </article>
  </main>
  
  <aside>
    <h2>Related Articles</h2>
    <ul>
      <li><a href="/html-basics">HTML Basics</a></li>
      <li><a href="/css-guide">CSS Guide</a></li>
      <li><a href="/web-dev-tips">Web Dev Tips</a></li>
    </ul>
    
    <h2>Popular Tags</h2>
    <ul>
      <li><a href="/tag/javascript">JavaScript</a></li>
      <li><a href="/tag/web-dev">Web Development</a></li>
    </ul>
  </aside>
</body>

Aside Within Article

Aside can also be used for tangential information within an article:

aside-in-article.html
<article>
  <h1>The History of the Internet</h1>
  
  <p>The internet began in the 1960s...</p>
  
  <aside>
    <h3>Did You Know?</h3>
    <p>The first email was sent in 1971 by Ray Tomlinson.</p>
  </aside>
  
  <p>As the internet evolved...</p>
</article>

Section vs Div

Use section when the content has semantic meaning, div for styling:

section-vs-div.html
<!-- Good: Semantic sections -->
<section>
  <h2>About Us</h2>
  <p>We are a company...</p>
</section>

<section>
  <h2>Our Services</h2>
  <p>We offer...</p>
</section>

<!-- Good: Div for layout/styling -->
<div class="container">
  <div class="row">
    <div class="col">Content</div>
  </div>
</div>

<!-- Avoid: Div when section is appropriate -->
<div>
  <h2>Products</h2>
  <p>Product description...</p>
</div>

Complete Page Structure

complete-structure.html
<!DOCTYPE html>
<html lang="en">
<body>
  <header>
    <h1>Tech Blog</h1>
    <nav>
      <a href="/">Home</a>
      <a href="/blog">Blog</a>
    </nav>
  </header>
  
  <main>
    <article>
      <h2>Web Development Best Practices</h2>
      
      <section>
        <h3>Clean Code</h3>
        <p>Writing clean code is essential...</p>
      </section>
      
      <section>
        <h3>Performance</h3>
        <p>Optimize your website for speed...</p>
        
        <aside>
          <p><strong>Tip:</strong> Use lazy loading for images!</p>
        </aside>
      </section>
      
      <section>
        <h3>Accessibility</h3>
        <p>Make your site accessible to everyone...</p>
      </section>
    </article>
  </main>
  
  <aside>
    <h2>Recent Posts</h2>
    <ul>
      <li><a href="/post/1">Getting Started with HTML</a></li>
      <li><a href="/post/2">CSS Flexbox Guide</a></li>
      <li><a href="/post/3">JavaScript Tips</a></li>
    </ul>
    
    <section>
      <h2>Newsletter</h2>
      <p>Subscribe for updates</p>
      <form>
        <input type="email" placeholder="Your email">
        <button type="submit">Subscribe</button>
      </form>
    </section>
  </aside>
  
  <footer>
    <p>&copy; 2024 Tech Blog</p>
  </footer>
</body>
</html>

Best Practices

Always Include Headings in Sections

section-headings.html
<!-- Good: Section with heading -->
<section>
  <h2>About Us</h2>
  <p>Content...</p>
</section>

<!-- Poor: Section without heading -->
<section>
  <p>Content without a heading...</p>
</section>

<!-- If no heading needed, consider using div -->
<div class="content-wrapper">
  <p>Content...</p>
</div>

Use Aside Appropriately

aside-usage.html
<!-- Good: Related but separate content -->
<article>
  <h1>Main Article</h1>
  <p>Main content...</p>
  
  <aside>
    <h3>Fun Fact</h3>
    <p>Additional interesting information...</p>
  </aside>
</article>

<!-- Wrong: Using aside for essential content -->
<aside>
  <h1>Main Article Title</h1>
  <p>This is the primary content...</p>
</aside>

Common Patterns

Blog Post Layout

blog-layout.html
<main>
  <article>
    <h1>Blog Post Title</h1>
    
    <section>
      <h2>Introduction</h2>
      <p>Post introduction...</p>
    </section>
    
    <section>
      <h2>Main Content</h2>
      <p>Main discussion...</p>
    </section>
    
    <section>
      <h2>Conclusion</h2>
      <p>Summary and wrap-up...</p>
    </section>
  </article>
</main>

<aside>
  <section>
    <h2>About the Author</h2>
    <p>John Doe is a web developer...</p>
  </section>
  
  <section>
    <h2>Related Posts</h2>
    <ul>
      <li><a href="#">Post 1</a></li>
      <li><a href="#">Post 2</a></li>
    </ul>
  </section>
</aside>

Key Takeaways

  • Use <section> for thematic groupings of content
  • Each section should typically have a heading
  • Use <aside> for tangentially related content
  • Aside is perfect for sidebars and callouts
  • Section has semantic meaning, div is for styling
  • Aside can be used at page level or within articles
  • Don't use section just to wrap content—it should have meaning
  • Both elements improve document structure and accessibility

What's Next?

Now that you understand section and aside elements, the next lesson will compare div vs semantic elements, helping you decide when to use generic containers versus semantic markup.

Know someone who'd find this guide helpful? Please share!

Previous
Main and Article
Next
Div vs Semantic Elements

Never Miss a New HTML Tutorial

Join 1,000+ developers learning HTML step-by-step. Get new tutorials, tips, and exclusive resources delivered to your inbox - completely FREE.

You might also like

UI Components

Ready-made components for your projects

Developer Tools

Boost productivity with handy generators

HTML Game

Learn HTML concepts through interactive gameplay

Join Our Web Development Training Program

Master frontend & backend development with hands-on projects.

Menu

Topics

Getting Started

  • What is HTML?
  • How the Web Works
  • Setting Up Your Environment
  • Your First HTML Page

HTML Document Structure

  • The DOCTYPE Declaration
  • The HTML Element
  • The Head Section
  • Meta Tags
  • The Body Element
  • HTML Comments

Text and Formatting

  • Headings (h1-h6)
  • Paragraphs
  • Line Breaks and Horizontal Rules
  • Text Formatting (Bold, Italic, etc.)
  • Quotations and Citations
  • Preformatted Text and Code
  • Subscript and Superscript

Links and Navigation

  • Creating Links
  • Absolute vs Relative URLs
  • Link Targets and Attributes
  • Email and Phone Links
  • Internal Page Links

Images and Media

  • Adding Images
  • Image Attributes
  • Image Formats
  • Figure and Figcaption
  • Responsive Images
  • Audio Elements
  • Video Elements
  • Embedding Content

Lists

  • Unordered Lists
  • Ordered Lists
  • Description Lists
  • Nested Lists

Tables

  • Table Basics
  • Table Headers and Footers
  • Spanning Columns and Rows
  • Table Captions
  • Styling Tables

Forms - Part 1 (Basics)

  • Introduction to Forms
  • Text Input Fields
  • Labels and Placeholders
  • Textarea Element
  • Checkboxes
  • Radio Buttons

Forms - Part 2 (Advanced)

  • Select Dropdowns
  • File Upload Inputs
  • HTML5 Input Types
  • Form Validation
  • Form Buttons
  • Fieldsets and Legends
  • Form Accessibility

Semantic HTML

  • What is Semantic HTML?
  • Header and Footer
  • Nav Element
  • Main and Article
  • Section and Aside
  • Div vs Semantic Elements
  • Time and Mark Elements

HTML5 Features

  • HTML5 Overview
  • Canvas Element
  • SVG in HTML
  • Geolocation API
  • Drag and Drop
  • Local Storage
  • Web Workers

Web Accessibility

  • Introduction to Accessibility
  • ARIA Attributes
  • Keyboard Navigation
  • Alt Text Best Practices
  • Color Contrast and Typography
  • Testing for Accessibility

Best Practices & SEO

  • HTML Best Practices
  • SEO Fundamentals
  • Meta Tags for SEO
  • Structured Data
Falytom logoFALYTOM

Learn technologies like HTML, CSS, JavaScript, React, NodeJS and more through interactive games, tutorials, components and free tools. Transform your businesses with AI chatbots, SEO-optimized websites, and professional development services.

© 2025 Tomilola Group
  • Facebook logo
  • Twitter logo
  • Instagram logo
  • LinkedIn logo
  • GitHub logo
  • YouTube logo