Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML HTML Tables Structuring Tables The Table Head and Body Elements

Dylan Carter
Dylan Carter
4,780 Points

"scope" and <thead>/<tbody>...

so the point of scope seems that it is a more enternal thing to let search engines and such know what is the topic of the content and what is the subinformation of each topic, but if we are putting a thead and tbody, doesnt that accomplish the same thing as far as interally labeling what the topic of the col/row is??

1 Answer

These are extremely important for screen readers. If you are unfamiliar with them, they are assisted devices for people who are blind. The devices reads the content to the user, and in the case of tables, the Scope attribute allows them to more easily understand the relation of the data in the column to that specific column as well as the other columns.

Here is more on the topic: http://webaim.org/techniques/tables/data#headers

Andre Kucharzyk
Andre Kucharzyk
4,479 Points

By "these" do you mean both thead and scope, or just scope?

I was referring to both the scope attribute and thead element. It really comes down to the data that you are using within a table, sometimes it can be more complex and thus becomes more beneficial to screen reader users to have that extra level of clarity.