On Sun, 11 Jul 2010, Tim Offenstein wrote: > I'd like some feedback on this. I'm teaching a class on web design > to students who've had various levels of training. I'm seeing a > number of students mark up their XHTML
Why XHTML? > with descriptively named DIVs that have no counterpart in the CSS. > Is this some kind of XML holdover or what? Am I missing some coding > practice or method for why this is being done? I don't recommend > this because (1) it clogs up the HTML with useless stuff, and (2) > there's potential to break the page if a DIV isn't closed. If a DIV isn't closed, it's not valid [X]HTML; it should get a failing grade. > If this is an attempt to section/categorize the code, simple HTML > comments will serve the purpose much better. The classes and IDs can be used later when the CSS is modified. -- Chris F.A. Johnson, <http://cfajohnson.com> Author: Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress) Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress) ______________________________________________________________________ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/