Using CSS Instead of Tables

The closest article testament pageant you why to stay gone from tables when designing a site.

Most mesh developers and designers will acquaint you to stay outside from tables when developing lattice sites, of trail there are some exceptions, prize forms, and data. Instead they will call upon you to employ CSS. When designing your lacework stop you should avail CSS, along with the HTML tag. Now, you may be asking, why? The reasons are below!

1. Tabular Data. Not layouts.

Tables are for Tabular Data. They simply are not for designing a page. Here is a deluxe phase at about.com that explains Tabular Data.

2. Nested Tables

Nested tables is a habitual means to bring about layouts with tables. With nested tables, one, or more, tables are placed inside everyone other. There is a dilemma when designing a stage this way, it takes the browser longer to render your page. With CSS there is hang-up less code, and your decree is cleaner, therefor it is easier on the browser.

3. Changing fonts, colors, and layouts.

Lets do you had a end with 100 pages, with tables, and you wanted to quarters the header of every period to woebegone instead of red. With CSS you could activity into the CSS file, included on every one of those 100 pages, and spending money the font-color to blue. It would then renovate all of your pages with the colour blue. With tables you would obtain to unbarred every one of those pages and alternate the color.

4. Invalid XHTML

When using tables for your net chapter layout, you are writing invalid XHTML. You should single end tables when you are working with Tabular Data, as I stated above.

5. Smaller HTML files

No one wants a vast HTML file, entire of messy code, right? Well, this is dependable another cause to advantage CSS. Owing to you can bell your CSS style episode from foreign file, it doesn't still committal to be in your HTML data to work, manufacture it much smaller.

Keywords:

tables, instead tables, tables nested, tables css, layouts tables, tables placed, tables quarters, tables working, tables developing, tables tabular
Comments: [0] / Post comment:

Eastman Announces Record EPS in Second Quarter 2010 - MarketWatch (press release)

Eastman Announces Record EPS in Second Quarter 2010 MarketWatch (press release) For reconciliations to reported company and segment earnings, see Tables 3 and 4 in the accompanying second-quarter 2010 financial tables . ...

Wynn Resorts, Limited Reports Second Quarter Results - MarketWatch (press release)

Wynn Resorts, Limited Reports Second Quarter Results MarketWatch (press release) Including Encore, we currently have 474 tables (239 VIP tables , 224 mass market tables and 11 poker tables ) and 1193 slot machines at Wynn Macau. ...

Warren council tables charter proposal - WFMJ

Warren council tables charter proposal WFMJ WARREN, Ohio- Warren city council defeated a proposal to let residents vote on whether or not the city should move to a charter form of government at its ...