|
-
What is better to use "div" or "tables"?
Hi all,
I would like to know some doubts that I have. I have observer that some websites are using "div" and other "tables".
What is the difference between those 2? What do I get or what results, if I use "div" or "tables" in my website.
I would like to hear some professional opinions.
Thanks a lot to all,
-
RE-Div or Table
Using div is more better and good, is a css property but table is obsolete and more of old html. Cheers.
 Originally Posted by IntegratedS
Hi all,
I would like to know some doubts that I have. I have observer that some websites are using "div" and other "tables".
What is the difference between those 2? What do I get or what results, if I use "div" or "tables" in my website.
I would like to hear some professional opinions.
Thanks a lot to all,
-
Use DIV for positioning elements on the page; i.e., for page layout.
Use TABLE only for presenting tabular data within content.
 Originally Posted by IntegratedS
Hi all,
I would like to know some doubts that I have. I have observer that some websites are using "div" and other "tables".
What is the difference between those 2? What do I get or what results, if I use "div" or "tables" in my website.
I would like to hear some professional opinions.
Thanks a lot to all,
-
Div Makes your Site More Consistent
The use of div enables your site more consistent accross many browsers.There are areas you can use table like the imediate above contributor has stated. Cheers.
-
I want to say that you use DIV for your site.
-
Using the div is the better way for your site
-
Both are important
Div is used to align the data in different forms.
And Tables are use to insert the tabular data.
-
Use tables only for making graphs and charts. The code is a lot larger than with DIVs. Though with proper practice, you can do the same with DIVs. I have used tables 2 this year out of probably 30 projects. I used to love tables, but DIVs are much smaller... better loading speed and SEO. One table tag being off will screw with Googlebot, adsense and others.
-
As per my experience Table is the old way for layout while div is the current.I prefer div for any web layout.. to get fast indexed in SE.
-
there is no better solution. It depends what do u want to do. If just table use <table> (and only in this case!!!) but if u want create layout of the website use only <div>
-
TABLE vs DIV
Not all the posters seem to understand:
The fundamental idea is that the tag should reflect the MEANING of the content, so that that MEANING alone is what informs the browsers and other devices (for deaf, blind, etc.), which will decide how to render the content.
In the old days, we abused the TABLE tag because it was the only way to control page layout. We used TABLE to position blocks of content that were ,in fact, NOT tables of data.
But now that we have CSS, including the powerful DIV tag, to control page layout, one ought not use TABLE tags to control page layout. Use TABLE to tell the world that this is a table, not to fool browsers into positioning the elements of a page one way or another.
The above is true for HTML to be rendered by browsers. There is still a reason to use TABLE for page layout when writing HTML for inclusion in emails. Most email clients cannot render CSS stylesheets, so all CSS properties have to be inline and content positioned via tables. Basically, the email clients are MANY YEARS behind the browsers in their abilities to render HTML/CSS.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
|
|