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

Dumb Question About <table>

Hey guys

So I'm working on a site for a sports league and I'm up to the part where I need to implement the Standings.

I just wanted to know if using a table would be a viable method of doing this or if it should be done using CSS.

Cheers

Stu :)

2 Answers

How about both?

As far as structure is concerned, an html table is a good choice because you have tabular data. Then you would use css to style that table.

If you're familiar with using developer tools you can look at what other sites are doing for standings.

For instance, this page:
http://www.cbssports.com/mlb/standings

does use html tables for it's standings.

Hey Jason,

Thanks for that, just wanted to double check as I never use HTML tables, and the MLB standings is exactly what I'm after too so thanks many thanks for that one.

I will study how they have developed it and go from there.

Thanks

Stu :)

James Barnett
James Barnett
39,199 Points

+1 for "an html table is a good choice because you have tabular data"

Stu, you're welcome.

James, thanks!

Thanks! This looks like a good link.