![]() But there are a few things you should keep in mind for better usability of tables. Styling tables is done like any other CSS styling of content. ![]() This could include charts of data or statistics, as well as things like price charts, product lists, or similar data that is logically arranged into a table format. Tables should be used whenever you have tabular data to display. So why wouldn’t you put tabular data within tags that exist specifically to enclose tabular data? When to Use Tables Still not convinced? Think of it this way: no one would propose you create faux-paragraphs with DIVs, would they? Paragraph tags exist to enclose paragraphs. Organization of content is still part of content. Tables might seem like presentation (which, according to web standards, should always be done with CSS, not HTML), but in reality they’re organization. The main thing you need to remember is that CSS should not be used to organize the data (that’s where HTML tables come in), only to style the data once it’s organized. ![]() Of course, you will want to use CSS to style your tables, but that’ll be covered below. Of course, most of these won’t work properly with DIVs. There are scripts out there, already in existence, that allow you (or your visitors) to reorganize the data in your tables. The second reason is that it’s just a lot more work, especially if your table is large, and you’re very limited in how you can manipulate the data inside a bunch of DIVs, compared to an actual table.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |