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! While you're at it, check out some resources Treehouse students have shared here.

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

Using Table Formatting Attributes e.g. align

I just finished watching the video lecture on HTML tables, and was surprised to see a lot of the time spent teaching the viewer how to use several attributes that don't add information to the table or its contents such as align, valign, and cell spacing & padding. I did a bit of research and found that all of these attributes are not even part of the HTML5 spec. Is there any particular reason why we're being taught this despite concerted efforts being made in all lectures prior that layouting and formatting should be done in CSS, not HTML?

I think its because if your making things like marketing email etc, hotmail for example strip out any css coding from the email. So you have to revert to using an early method of styling html tags.

Hello TJ,

First thing is that you should remember that HTML4 is not dead already so most part of pages are coded in HTML4 and you should know about it.

And second thing the lessons are in HTML4 not HTML5. Even thought you should be getting ready to code just in HMTL5 from now on

1 Answer

I suspect the reason is more pedological then technical. Since the HTML course comes before the CSS course. It's much easier to teach someone how to use the align and padding properties than to teach them how to use the box model, margin & padding.

Of course I take your point, everyone should really be forward looking in our HTML learning and that means dropping use of properties that aren't support in HTML5.