answersLogoWhite

0

Difference between div and table

Updated: 12/19/2022
User Avatar

Wiki User

13y ago

Best Answer

div (division)is floating type that breaks a webpage into a smaller parts. It can be nested to divide sections into a few columns that present information separately but side-by-side. A common device used is the define a class of clear in the stylesheet and using a div or a break of that class to end the differientiation before its occurrence.

A table is a logical physical construct type that works in rows and columns. Before the advent of stylesheets and browser support for them, many a webpage used tables nested within each other to achieve formatting of more complex varieties. Rendering could suffer with the more complicated schemes. They are capable of rigidly fixed in size or allowed to render as a percentage of screen resolution.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Difference between div and table
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you hide the ad on the top of your MySpace page but keep the navigation bar AND the search bar I know that I'm in risk to get my account deleted but idrc?

<style> type=text/css>DIV{VISIBILITY: visible}DIV TABLE {VISIBILITY: hidden}DIV TABLE TD {VISIBILITY: hidden}DIV TABLE TABLE TD {VISIBILITY: visible}DIV TABLE TABLE {VISIBILITY: hidden}DIV TABLE TABLE DIV {VISIBILITY: visible}TABLE TD DIV DIV {VISIBILITY: hidden}TABLE TABLE TABLE {VISIBILITY: visible}DIV TABLE { VISIBILITY:hidden}</style></p>


What is the code to hide your music player?

Put this on your About me section! <style> embed, object {filter:alpha(opacity=0.2); opacity:0.02; -khtml-opacity:0.02;} td td td embed, td td td object, table table td.text embed, table table td.text object {filter:none; opacity:none; -khtml-opacity:none;} table table div {position:absolute; top:0px; left:-250px;} table table td.text div, table table div div, table table table div, div table table div, table div table div {position:static;} table.interestsAndDetails {margin-top:-25px;} </style>


What is the code to hide your profile playlist?

<style> embed, object {filter:alpha(opacity=0.2); opacity:0.02; -khtml-opacity:0.02;} td td td embed, td td td object, table table td.text embed, table table td.text object {filter:none; opacity:none; -khtml-opacity:none;} table table div {position:absolute; top:0px; left:-250px;} table table td.text div, table table div div, table table table div, div table table div, table div table div {position:static;} table.interestsAndDetails {margin-top:-25px;} </style>


How do you Hide music player on MySpace?

Put this in the bottom of your about me section <style> embed, object {filter:alpha(opacity=0.2); opacity:0.02; -khtml-opacity:0.02;} td td td embed, td td td object, table table td.text embed, table table td.text object {filter:none; opacity:none; -khtml-opacity:none;} table table div {position:absolute; top:0px; left:-250px;} table table td.text div, table table div div, table table table div, div table table div, table div table div {position:static;} table.interestsAndDetails {margin-top:-25px;} </style>


What is the difference between DIV and TABLE?

The TABLE tag is used to store tabular content and as such has child tags such as TR (for table rows), TD (for table cells), TH (for table headers), etc. The DIV tag is used simply to encompass a block for styling or structural reasons, it is similar to the SPAN tag but it a 'block' element as oppose to an 'inline' element (which SPAN is).


What is the different between table tag and div tag in HTML?

The table tag is used to create a table, which is a type of block-level element. The div tag is used to create a generic block element. The main difference is that tables are best-suited for tabular data, and divs are best-suited to presentation of non-tabular data.


How do you hide your navigation bar on MySpace?

<style type="text/css"> table table table table div {visibility:hidden;} div table table table table table div input, div a, td.text div {visibility:visible;} </style><a href="http://myspacecake.com/" target="_blank"><img src="http://myspacecake.com/img/button.gif" alt="Myspace Codes" style="position:absolute; left:0px; top: 0px;" border="0"></a>


How do you delete your bottom links on myspace?

<style> table tr td div font {display: none;} </style> <style> table td div {visibility:hidden;} table table td div {visibility:visible;} tr {background:transparent;}</style> <style> table tr td div div { visibility:hidden; display:none; border:0px!important; background-color:transparent; } </style>


How do you hide MySpace terms of use?

table tr td div font {display: none;}table td div {visibility:hidden;}table table td div {visibility:visible;}tr {background:transparent;}table tr td div div {visibility:hidden;display:none;border:0px!important;background-color:transparent;}


Codes to hide advertisements on MySpace?

<style>.a form {display:none;}table table table form {display:inline;}.a {} table div {display:none;}table table div {display:block;}td {height:0px;}</style> <p>


What is the difference between mid sized tennis rackets and large sized ones?

Their size(div).


What HTML elements can be used to format several table columns with a single declaration?

You could wrap the contents of table into a div. Applying actions on that div will do the work.