What is the difference between a table header and a heading?

Posted by Debbie Smith on Feb 9, 2010 in Uncategorized

In your comments for 5.02 you said I shouldn’t have any headers but I need 1 heading for each page. What is the difference between a header and a heading?

GREAT question! All pages should have headings that are marked up as headings using the format. They should be marked up using a Heading 1- Heading 6. These give structure to your pages.  Headings should be used in order which means you should never have a heading 2 unless you have a heading 1 before it. They form an outline. This helps with search engine optimization and with accessibility.

Tables were never meant to be used for layout. Tables were meant to hold data only. Many people still use tables for layout even though it is not a great practice. If you do use tables for layout, you need to be sure that you have the headers set to 0.  This is also for accessibility.  It confuses search engines and text readers when you set it incorrectly.  If you have headers set you will see <th> instead of <td> in your code. When I look at your pages I always check to be sure you are not using the <th> code unless you are using tables to hold tabular data

Copyright © 2018 Dazed Thoughts on Web Design All rights reserved. Theme by Laptop Geek.