HTML table, thead, tbody, tfooter Code Validation = Order specific

I ran the theme through the W3 Validator and it came back with only 9 errors. 6 of them were because i copy pasted an <img> tag that had alt- instead of alt= Easily Fixed.

The remaining errors were 2 missing alt tags and one was a <tfoot> tag, it stumped me for a little while so i looked on “The Google” and found probably the one and only surprising concepts I’ve ever seen in a scripting language.

If you write it as follows


you get a single error warning from the W3 validator on the </tfoot> tag, Go figure!

The correct syntax is as follows: Note the thead then tfoot then tbody. Weird!!


Leave a Reply