nextRound
TechnologiesCoding ProblemsBookmarksLearning Paths
nextRound
TechnologiesCoding ProblemsBookmarksLearning Paths
nextRound

AI-powered interview preparation platform. Practice with curated questions, mock interviews, and personalized learning paths to crack your dream tech interview.

Quick Links

  • Technologies
  • Saved Questions
  • Pricing

Company

  • About Us
  • Contact Us

Legal

  • Privacy Policy
  • Terms of Use

© 2026 nextRound. All rights reserved.

TOPIC OVERVIEW

HTML/Tables

Structuring tabular data properly, and why tables are not a layout tool.

9 QuestionsIntermediateMedium Priority ~9 min read

Tables are for presenting data in rows and columns. A well-structured table uses table, caption, thead, tbody and tfoot to group sections, tr for rows, th for header cells and td for data cells. The colspan and rowspan attributes let cells span multiple columns or rows, and the scope attribute on th (col or row) tells assistive technology which cells a header applies to.

Historically developers used tables to lay out entire pages, which is now considered bad practice because it mixes content with presentation, hurts accessibility and is hard to make responsive. Layout belongs to CSS Flexbox and Grid. Interviewers may ask how to make a wide table work on mobile (a horizontally scrollable wrapper is common), how to style borders with border-collapse, and why using th and caption matters for screen reader users navigating the data.

What you'll walk away knowing

The structure of a semantic table: caption, thead, tbody, tfoot, tr, th and td
How colspan, rowspan and scope work, and why scope helps accessibility
Why tables should never be used for page layout
Techniques for handling wide tables on small screens
1How can you merge rows and columns in HTML tables?Intermediate2What is the scope attribute in <th>?Intermediate3How do you make a column header accessible?Intermediate4How do we create tables in HTML?Beginner5Explain the structure of a table in HTML?Beginner6What is the purpose of <thead>, <tbody>, and <tfoot>?Beginner
All Topics
1
Basics
Common Tags
Attributes and Elements
Lists
Text tags and Formatting
2
Input and Forms
Block and Inline Elements
Box model
3
Semantic Tags
Links and Images
Media and Embeds
Tables
HTML entities
HTML and CSS
4
Performance
SEO
Progressive Enhancement
5
HTML5
Custom Elements & Web Components
HTML5 APIs
SPAs
6
WCAG
Security
Best Practices
Sharethis topic

Share via WhatsApp, X, Facebook, LinkedIn or copy link. Open Graph preview enabled.