<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Is Using Lots of div Tags Really That Bad?</title>
	<atom:link href="http://www.sitepoint.com/blogs/2008/10/28/is-using-lots-of-div-tags-really-that-bad/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sitepoint.com/blogs/2008/10/28/is-using-lots-of-div-tags-really-that-bad/</link>
	<description>News, opinion, and fresh thinking for web developers and designers. The official podcast of sitepoint.com.</description>
	<lastBuildDate>Sun, 22 Nov 2009 11:54:05 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: dpages</title>
		<link>http://www.sitepoint.com/blogs/2008/10/28/is-using-lots-of-div-tags-really-that-bad/comment-page-1/#comment-847519</link>
		<dc:creator>dpages</dc:creator>
		<pubDate>Fri, 12 Dec 2008 10:43:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=3131#comment-847519</guid>
		<description>There&#039;s nothing &#039;politically correct&#039; about CSS. I happen to enjoy being able to change a design site-wide easily, and I think content structure should come first, and then presentation should follow, like with any other document. 

I think it&#039;s important that search engines to be able to find and understand my content (accessibility is also self-interest for me and my clients, with Google effectively being the king of disabled users and, using CSS properly, most of my SEO is already done). It&#039;s also reassuring to my clients that their sites don&#039;t break the law with regards disabled access, and that I&#039;m not putting barriers in the way of disabled people&#039;s freedom to use their site, rather than hanging up the web equivalent of a &#039;no entry&#039; sign.

I like the fact that people can resize my pages in their browser, and the design doesn&#039;t break.

You&#039;re right, there are probably table-based designs that are difficult to reproduce in CSS (although the techniques in the book bring those a step closer). But then there are designs I could produce using a big, one-page JPEG file that you can&#039;t reproduce using tables, and that&#039;s not a reason to start using them either.

Personally, I also enjoy learning new techniques that I can use, as an intellectual challenge too. I like learning as an activity anyway.

Of course, you&#039;re perfectly at liberty to continue the way you always have, and I&#039;m sure you&#039;re also perfectly happy with your reasons for doing so. I just think history would have been a lot different if there weren&#039;t people who were challenging the status quo and looking for better ways to do things.</description>
		<content:encoded><![CDATA[<p>There&#8217;s nothing &#8216;politically correct&#8217; about CSS. I happen to enjoy being able to change a design site-wide easily, and I think content structure should come first, and then presentation should follow, like with any other document. </p>
<p>I think it&#8217;s important that search engines to be able to find and understand my content (accessibility is also self-interest for me and my clients, with Google effectively being the king of disabled users and, using CSS properly, most of my SEO is already done). It&#8217;s also reassuring to my clients that their sites don&#8217;t break the law with regards disabled access, and that I&#8217;m not putting barriers in the way of disabled people&#8217;s freedom to use their site, rather than hanging up the web equivalent of a &#8216;no entry&#8217; sign.</p>
<p>I like the fact that people can resize my pages in their browser, and the design doesn&#8217;t break.</p>
<p>You&#8217;re right, there are probably table-based designs that are difficult to reproduce in CSS (although the techniques in the book bring those a step closer). But then there are designs I could produce using a big, one-page JPEG file that you can&#8217;t reproduce using tables, and that&#8217;s not a reason to start using them either.</p>
<p>Personally, I also enjoy learning new techniques that I can use, as an intellectual challenge too. I like learning as an activity anyway.</p>
<p>Of course, you&#8217;re perfectly at liberty to continue the way you always have, and I&#8217;m sure you&#8217;re also perfectly happy with your reasons for doing so. I just think history would have been a lot different if there weren&#8217;t people who were challenging the status quo and looking for better ways to do things.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: stevenjs</title>
		<link>http://www.sitepoint.com/blogs/2008/10/28/is-using-lots-of-div-tags-really-that-bad/comment-page-1/#comment-847184</link>
		<dc:creator>stevenjs</dc:creator>
		<pubDate>Thu, 11 Dec 2008 18:32:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=3131#comment-847184</guid>
		<description>Now we have &quot;politically correct&quot; code, about which only a code junkie could care.

I will continue to use tables for layout, not only because they make perfect sense as a layout tool (unlike CSS), are easy and intuitive to use, accomplish designs that CSS simply can not (let me repeat that CAN NOT), and I do not what a code-ist religiion that impoverishes design, but simply for spite.

And more, I&#039;d be delighted to kick every W3 pithead in the butt-hole that ever said laid down this &quot;recommendation&quot; and frankly derive immense personal gratification from stangling with me own hands every a-hole who has sought to turn this &quot;recommendation&quot; into the 11th Commandment.</description>
		<content:encoded><![CDATA[<p>Now we have &#8220;politically correct&#8221; code, about which only a code junkie could care.</p>
<p>I will continue to use tables for layout, not only because they make perfect sense as a layout tool (unlike CSS), are easy and intuitive to use, accomplish designs that CSS simply can not (let me repeat that CAN NOT), and I do not what a code-ist religiion that impoverishes design, but simply for spite.</p>
<p>And more, I&#8217;d be delighted to kick every W3 pithead in the butt-hole that ever said laid down this &#8220;recommendation&#8221; and frankly derive immense personal gratification from stangling with me own hands every a-hole who has sought to turn this &#8220;recommendation&#8221; into the 11th Commandment.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: bsmbahamas</title>
		<link>http://www.sitepoint.com/blogs/2008/10/28/is-using-lots-of-div-tags-really-that-bad/comment-page-1/#comment-821873</link>
		<dc:creator>bsmbahamas</dc:creator>
		<pubDate>Wed, 05 Nov 2008 19:33:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=3131#comment-821873</guid>
		<description>since we are still using divs, and using css to mark the parts of the table, i don&#039;t see the big deal, if we decide we don&#039;t want it to be tabular anymore we remove the display: table from the css code, and it we could style it using the id like a regular div. seems to me that css could still handle the styling using an external stylesheet without having to edit the html page - keeping the style and content seperate.

the article at digital point used  but it could have been  and we&#039;d still be able to use css to say it is a cell, or later use it as just a plain old div belong to our fruit class.

we don&#039;t have to use cell, row, etc as the name of the class
in the divs, but a  or  will always act like a cell or row in html, we&#039;d have to edit the html to affect how they behave, using divs to build a tabular layout lets you control how they are styled in an external css file - so today they might be used as a table but tomorrow you could remove the table formatting from the css class without having to update your html code.

so i think it is a step forward, but i doubt it will be adopted until microsoft gets rid of ie6 and ie7, since we can handle all browsers now using regular divs.

hope this post makes sense</description>
		<content:encoded><![CDATA[<p>since we are still using divs, and using css to mark the parts of the table, i don&#8217;t see the big deal, if we decide we don&#8217;t want it to be tabular anymore we remove the display: table from the css code, and it we could style it using the id like a regular div. seems to me that css could still handle the styling using an external stylesheet without having to edit the html page &#8211; keeping the style and content seperate.</p>
<p>the article at digital point used  but it could have been  and we&#8217;d still be able to use css to say it is a cell, or later use it as just a plain old div belong to our fruit class.</p>
<p>we don&#8217;t have to use cell, row, etc as the name of the class<br />
in the divs, but a  or  will always act like a cell or row in html, we&#8217;d have to edit the html to affect how they behave, using divs to build a tabular layout lets you control how they are styled in an external css file &#8211; so today they might be used as a table but tomorrow you could remove the table formatting from the css class without having to update your html code.</p>
<p>so i think it is a step forward, but i doubt it will be adopted until microsoft gets rid of ie6 and ie7, since we can handle all browsers now using regular divs.</p>
<p>hope this post makes sense</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.sitepoint.com/blogs/2008/10/28/is-using-lots-of-div-tags-really-that-bad/comment-page-1/#comment-820577</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Mon, 03 Nov 2008 13:31:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=3131#comment-820577</guid>
		<description>@Watershed

Completely agree with Andy Clarke&#039;s approach as well. After reading his book it totally transformed the way I look at setting things up from an HTML perspective.

Unfortunately, certain limitations with CSS across the various browsers encourages people to just add the extra markup to make their lives easier. 

Justifiable or not, it&#039;s just the way it is.</description>
		<content:encoded><![CDATA[<p>@Watershed</p>
<p>Completely agree with Andy Clarke&#8217;s approach as well. After reading his book it totally transformed the way I look at setting things up from an HTML perspective.</p>
<p>Unfortunately, certain limitations with CSS across the various browsers encourages people to just add the extra markup to make their lives easier. </p>
<p>Justifiable or not, it&#8217;s just the way it is.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Johhny2Bad</title>
		<link>http://www.sitepoint.com/blogs/2008/10/28/is-using-lots-of-div-tags-really-that-bad/comment-page-1/#comment-819450</link>
		<dc:creator>Johhny2Bad</dc:creator>
		<pubDate>Sat, 01 Nov 2008 12:05:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=3131#comment-819450</guid>
		<description>&lt;blockquote&gt;Reading over the comments i noticed a common theme, although where talking about the use of css, divs and tables and how best to use them, the bottom line seems to be about readability and maintainance.&lt;/blockquote&gt;
&lt;blockquote&gt;If a document is indented as metioned and well commmented then readability and maintenance shouldnt be a proble.&lt;/blockquote&gt;
&lt;blockquote&gt;good indentation and commenting may not solve the problem/possibility that u may have to change large chunks of code to update the site but good indentation and commenting regardless of what methods you use should still simplify readability and maintenance&lt;/blockquote&gt;
&lt;blockquote&gt;i tend to adopt the software desgn approach even when designing websites/pages by first creating a PDL (program design language) which gives me a perfect template for commenting and organising my code for easy readability and maintenance.&lt;/blockquote&gt;</description>
		<content:encoded><![CDATA[<blockquote><p>Reading over the comments i noticed a common theme, although where talking about the use of css, divs and tables and how best to use them, the bottom line seems to be about readability and maintainance.</p></blockquote>
<blockquote><p>If a document is indented as metioned and well commmented then readability and maintenance shouldnt be a proble.</p></blockquote>
<blockquote><p>good indentation and commenting may not solve the problem/possibility that u may have to change large chunks of code to update the site but good indentation and commenting regardless of what methods you use should still simplify readability and maintenance</p></blockquote>
<blockquote><p>i tend to adopt the software desgn approach even when designing websites/pages by first creating a PDL (program design language) which gives me a perfect template for commenting and organising my code for easy readability and maintenance.</p></blockquote>]]></content:encoded>
	</item>
	<item>
		<title>By: aranwe</title>
		<link>http://www.sitepoint.com/blogs/2008/10/28/is-using-lots-of-div-tags-really-that-bad/comment-page-1/#comment-818215</link>
		<dc:creator>aranwe</dc:creator>
		<pubDate>Thu, 30 Oct 2008 00:39:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=3131#comment-818215</guid>
		<description>@Garison:
I don&#039;t think you looked at the (horribly mangled) markup I provided. I&#039;m not using HTML tables. I&#039;m talking about using CSS tables. I&#039;ve never created a design with HTML tables and never will. I completely forsook web development early on because HTML table layouts were the &quot;way to do it&quot; and I hated them.

@Stephen:
Your suggestion would work and still maintain semantics; however, my question was how to layout the provided markup, not whether or not it was correct. I noted in my original comment that I&#039;ve done that layout without CSS tables, but I am curious if it can be done with them.

I guess my point in all this is that I don&#039;t know that CSS tables will really be all that revolutionary. Sure, if your markup plays nice with CSS table-based layouts, then you have a much more direct and easy implementation ahead of you. Should you force your HTML to play nice with CSS tables? I don&#039;t think so. I would agree with watershed and Andy Clarke that markup comes first, then the layout, which also agrees with Garison&#039;s comments (even though I was misquoted).

Put simply, CSS tables is a shortcut to clean grid-based design &lt;strong&gt;if&lt;/strong&gt; your markup works with it naturally. Forcing markup to fit a layout scheme is just wrong.</description>
		<content:encoded><![CDATA[<p>@Garison:<br />
I don&#8217;t think you looked at the (horribly mangled) markup I provided. I&#8217;m not using HTML tables. I&#8217;m talking about using CSS tables. I&#8217;ve never created a design with HTML tables and never will. I completely forsook web development early on because HTML table layouts were the &#8220;way to do it&#8221; and I hated them.</p>
<p>@Stephen:<br />
Your suggestion would work and still maintain semantics; however, my question was how to layout the provided markup, not whether or not it was correct. I noted in my original comment that I&#8217;ve done that layout without CSS tables, but I am curious if it can be done with them.</p>
<p>I guess my point in all this is that I don&#8217;t know that CSS tables will really be all that revolutionary. Sure, if your markup plays nice with CSS table-based layouts, then you have a much more direct and easy implementation ahead of you. Should you force your HTML to play nice with CSS tables? I don&#8217;t think so. I would agree with watershed and Andy Clarke that markup comes first, then the layout, which also agrees with Garison&#8217;s comments (even though I was misquoted).</p>
<p>Put simply, CSS tables is a shortcut to clean grid-based design <strong>if</strong> your markup works with it naturally. Forcing markup to fit a layout scheme is just wrong.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: watershed</title>
		<link>http://www.sitepoint.com/blogs/2008/10/28/is-using-lots-of-div-tags-really-that-bad/comment-page-1/#comment-818115</link>
		<dc:creator>watershed</dc:creator>
		<pubDate>Wed, 29 Oct 2008 17:35:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=3131#comment-818115</guid>
		<description>Good point, Stormrider &#8211; I agree &#8211; though it&#039;s a bit late now.</description>
		<content:encoded><![CDATA[<p>Good point, Stormrider &ndash; I agree &ndash; though it&#8217;s a bit late now.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: pierce</title>
		<link>http://www.sitepoint.com/blogs/2008/10/28/is-using-lots-of-div-tags-really-that-bad/comment-page-1/#comment-818111</link>
		<dc:creator>pierce</dc:creator>
		<pubDate>Wed, 29 Oct 2008 17:13:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=3131#comment-818111</guid>
		<description>Proper indentation is a beautiful thing.  I stress that in all my programming and web-dev classes.

veg0matic Says:

Whenever I’m analyzing someone else’s HTML (or Javascript or Perl), the first thing I do is re-indent everything. If some divs or other elements aren’t closed, the indentation gives you a clue which ones.</description>
		<content:encoded><![CDATA[<p>Proper indentation is a beautiful thing.  I stress that in all my programming and web-dev classes.</p>
<p>veg0matic Says:</p>
<p>Whenever I’m analyzing someone else’s HTML (or Javascript or Perl), the first thing I do is re-indent everything. If some divs or other elements aren’t closed, the indentation gives you a clue which ones.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Stormrider</title>
		<link>http://www.sitepoint.com/blogs/2008/10/28/is-using-lots-of-div-tags-really-that-bad/comment-page-1/#comment-818100</link>
		<dc:creator>Stormrider</dc:creator>
		<pubDate>Wed, 29 Oct 2008 16:11:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=3131#comment-818100</guid>
		<description>One thing I don&#039;t like is the name &#039;css tables&#039; - they are only called this as a hangover from the html table tag. A table is a semantic structure, and we are talking about using a presentational concept - it should be called something different to &#039;tables&#039; when in the css context.</description>
		<content:encoded><![CDATA[<p>One thing I don&#8217;t like is the name &#8216;css tables&#8217; &#8211; they are only called this as a hangover from the html table tag. A table is a semantic structure, and we are talking about using a presentational concept &#8211; it should be called something different to &#8216;tables&#8217; when in the css context.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: lulabelle</title>
		<link>http://www.sitepoint.com/blogs/2008/10/28/is-using-lots-of-div-tags-really-that-bad/comment-page-1/#comment-818097</link>
		<dc:creator>lulabelle</dc:creator>
		<pubDate>Wed, 29 Oct 2008 15:49:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=3131#comment-818097</guid>
		<description>It sounds like there is some confusion about the use of table tags as opposed to div tags which &lt;em&gt;behave&lt;/em&gt; like tables. 

Web design layouts are based on a grid structure and in order to display them we are currently being forced to use less than ideal methods to do so (namely floating). A grid can be much more sensibly laid out using the mental model of a table. Using CSS to do this means that we can do it by making a pseudo table without ever needing to affect the user or the html code.

As I understand it, all &quot;table&quot; elements which are not specifically stated in the CSS are implied which means that if I describe a &lt;div&gt; as a table-cell in the CSS then the row and table elements are assumed to surround it, even if there are no surrounding &lt;div&gt;s. Therefore, no extra markup needs to be added. 

The fact that IE is preventing us from using this technique is a major drawback so we will have to bide our time somewhat, but in the meantime, we can arm ourselves ready to make our lives easier as soon as IE8 falls into common use. (and works like it&#039;s supposed to!)</description>
		<content:encoded><![CDATA[<p>It sounds like there is some confusion about the use of table tags as opposed to div tags which <em>behave</em> like tables. </p>
<p>Web design layouts are based on a grid structure and in order to display them we are currently being forced to use less than ideal methods to do so (namely floating). A grid can be much more sensibly laid out using the mental model of a table. Using CSS to do this means that we can do it by making a pseudo table without ever needing to affect the user or the html code.</p>
<p>As I understand it, all &#8220;table&#8221; elements which are not specifically stated in the CSS are implied which means that if I describe a &lt;div&gt; as a table-cell in the CSS then the row and table elements are assumed to surround it, even if there are no surrounding &lt;div&gt;s. Therefore, no extra markup needs to be added. </p>
<p>The fact that IE is preventing us from using this technique is a major drawback so we will have to bide our time somewhat, but in the meantime, we can arm ourselves ready to make our lives easier as soon as IE8 falls into common use. (and works like it&#8217;s supposed to!)</p>]]></content:encoded>
	</item>
</channel>
</rss>
