Interview Question

Create a responsive table

Start with semantic, accessible HTML and keep the structure simple.

💡 Concept ✅ Quick Revision 🌐 HTML

Answer

Create a responsive table is a coding task that checks whether you can choose clear, meaningful HTML. • Plan the content before writing tags. • Use native elements, labels, headings, and useful link or button text. • Keep styling and behavior separate unless the question asks for them.

💡 Simple Example

<div class="table-scroll"><table><caption>Scores</caption><tr><th>Name</th><th>Score</th></tr><tr><td>Maya</td><td>95</td></tr></table></div>

⚡ Quick Revision

Start with semantic, accessible HTML and keep the structure simple.