Chapter practice task
Build a services list and a pricing table
- On index.html, list your services with an unordered list.
- Add a numbered list showing the steps of how you work with clients.
- Build a price table with <thead>, <tbody> and <th> for three packages.
- Add a <caption> that explains what the table shows.
- Wrap the table in a box that scrolls sideways so it works on phones.
By the end of this chapter
- You can choose between <ul>, <ol> and <dl> with confidence
- You can build accessible tables with headers and captions
- You know how to merge cells with colspan and rowspan
Quick answers for this chapter
Should I use a list or a table?
A list for single items, a table when each item has several pieces of information to compare.
How do I remove bullet points?
Use CSS: list-style: none and padding-left: 0 on the list.
Are tables bad for SEO?
No. Tables are great for real data. Just don’t use them to lay out a whole page.