Data for HTMLs
HTML data presentation covers tables for tabular information and graphics for drawn content. A table uses caption, thead, tbody, th and td with scope attributes so relationships between headers and cells are clear. Inline SVG and the canvas element provide vector and pixel graphics directly in the page.
Stage: Media and Data · Part of the HTML roadmap · Last reviewed 19 November 2026
What to learn in Data
- Build a table with caption, thead, tbody and th cells
- Use the scope attribute so headers map to the right cells
- Merge cells with colspan and rowspan only when needed
- Embed a simple inline SVG shape and give it an accessible name
- Choose between SVG and canvas for a given graphic
Data interview questions
Should you use tables for page layout?
No. Tables are for tabular data, and using them for layout confuses screen readers and makes pages hard to adapt to small screens. Use CSS Flexbox or Grid for layout, and keep table elements for rows and columns of related data.
What is the difference between SVG and canvas?
SVG is vector graphics described as elements in the DOM, so shapes scale without loss and can be styled and read by assistive technology. Canvas is a pixel surface drawn with JavaScript, which suits many fast-changing objects but keeps no shape structure.
Where Data fits in the HTML roadmap
Data belongs to the Media and Data stage (beginner level), which takes about 8 hours. Beyond text.