On Mon, 9 Feb 2009, Ben Lau wrote:
Are there any (seriously) bad implications of having empty DIVs around your HTML document? I try to avoid using them personally, but there are cases where the visual design has forced me to add empty divs (or spans) just to achieve the look.
I've never used an empty <div> except with 'clear:both' to force the parent element to enclose floated elements. Do you have other uses for it?
Apart from adding extra weight and cluttering the document, I understand screen readers do not pick up divs and spans? Would I be better off to insert these meaningless decorative tags using javascript and modifying the DOM, while non-javascript users would see a more cut down version of the design? Do screen readers pick up javascript and events?
What do you want to do that cannot be done without JS? -- Chris F.A. Johnson, webmaster <http://woodbine-gerrard.com> ========= Do not reply to the From: address; use Reply-To: ======== Author: Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress) ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *******************************************************************