Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 23rd, 2008, 01:14 PM
Registered User
 
Join Date: May 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Div VS table..what are their main purpose?


*I read from some articles that what can I do in table is can I do with Div... is it true?
*what is the main purpose of DIV and table?
*what are the techniques to minimize the size of website?




http://www.gorlitz.com/
 
Old May 24th, 2008, 01:41 AM
Authorized User
 
Join Date: Mar 2007
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to kennethjaysone Send a message via Yahoo to kennethjaysone
Default

A <div> tag is used to divide content in the document into sections. A table is used to tabulate data.

It is wrong to use a table to achieve a visual goal because you can create a markup that is clean (using the latest web standards) and then use CSS to achieve your visual target for that particular site.

CSS is a proven standard that has remarkably reduced file sizes of websites.

Check out this link.

http://www.webstandards.org/

Hope this helps.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Positioning Div over specific table cell pjmair HTML Code Clinic 4 May 8th, 2009 02:19 PM
DHTML - Div tags causing table cells to expand ve clem_c_rock HTML Code Clinic 5 September 12th, 2006 02:03 PM
Safari not rendering div inside table irjaelisa CSS Cascading Style Sheets 1 July 10th, 2006 10:59 PM
margin-top on main wrap div not working in IE avail1now CSS Cascading Style Sheets 3 April 8th, 2006 11:26 PM
Can Main and SubReport get data fr different table yblee Crystal Reports 0 August 19th, 2004 03:37 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.