When Should I Use Div Tags When I Already Have The Option For Dividing Page With Table Tag
Solution 1:
Because tables are for tabular data, divs are for layout.
Solution 2:
Setting up the layout using table tag is now obsolete when you can use the div tags with nice css features, and hence position them to the level of pixels as you like and define there position on the page as absoulte, fixed, relative etc.
Solution 3:
It depends on who is looking at your page.
If it's just you, then it doesn't matter. Do what you want.
If the wider world is going to see your page(s) then use mark-up as it's meant to be used.
Tables are for tabular data, as Marko says, so only use them for that. Divs allow you to divide up your content in to a logical structure that can be styled by CSS, OR NOT.
It's important to realise that there are some ways of using the web that are not visual, such as screen readers and Braille interfaces.
If you use tables for layout you are impeding the use of your page by people/processes who are not experiencing it with eyes.
Post a Comment for "When Should I Use Div Tags When I Already Have The Option For Dividing Page With Table Tag"