View Single Post
Old 10-09-2011, 01:51 AM   #2
Jim Lester
Evangelist
Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.
 
Jim Lester's Avatar
 
Posts: 416
Karma: 14682
Join Date: May 2008
Location: SF Bay Area
Device: Nook HD, Nook for Windows 8
align is not a valid attribute for the img element in XHTML 1.1. Which is what FlightCrew meant by it not being defined (it's not in the list of valid things).

Similarly width is not a valid attribute for td in XHTML 1.1

You can see what you can and cant do with various elements either by reading the spec (It's what I do - but I'm beyond warped - http://www.w3.org/TR/xhtml-modulariz...dule_defs.html )

Or you can look at a site such w3schools and remember that XHTML 1.1 is 'Strict'
http://www.w3schools.com/tags/tag_img.asp (for the img tag)
http://www.w3schools.com/tags/tag_td.asp (for the td tag)

(Look at the DTD it'll says either STF or TF - if it doesn't have the S there, then you can't use it).

Last edited by Jim Lester; 10-09-2011 at 01:57 AM. Reason: added links to w3schools
Jim Lester is offline   Reply With Quote