Re: [WSG] table inside a dd?
Hi Two good resources may help you here: HTML help: http://htmlhelp.com/reference/html40/lists/dd.html Contents Inline elements, block-level elements The DTD for XHTML (strict e.g): http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd and http://www.w3.org/TR/xhtml1/dtds.html#a_dtd_XHTML-1.0-Strict !-- definition lists - dt for term, dd for its definition -- !ELEMENT dd %Flow; !ATTLIST dd %attrs; Meaning you can add pretty much any element inside a dd. Whether it's the best way to do it, is another matter which I think the other replies answer. HTH James On Mon, 17 Aug 2009 03:18:35 pm Tim MacKay wrote: Hi all, Is it semantic markup to include a table of items ( in this case a nutritional information table ) as the contents of a dd within a definition list? *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
Re: [WSG] table inside a dd?
On 17/08/2009 06:18, Tim MacKay wrote: I am marking up product nutritional information and am thinking of doing it like so: dl dt The Product /dt dd Paragraph blurb about the product /dd dd table …etcTabular data of the nutritional information/…etc /table /dd /dl Is nesting the table within the def list valid markup? Yes. I'd tend to suggest using headings (or headings inside a list) instead of a definition list, so that each product has an entry in the effective document outline: h2The Product/h2 pblurb/p table captionNutritional information/caption ... /table More practically, this allows non-mouse users of Opera (http://www.opera.com/browser/tutorials/nomouse/) or assistive technology (http://www.freedomscientific.com/Training/Surfs-up/Navigating.htm) to skip effectively from one product to another, and surfaces the products in assistive technology heading lists. Some assistive technology does have some support for definition lists, but it's not especially pretty, which isn't surprising given the HTML spec suggests using the element for terms and descriptions, and also for dialogs: http://www.webaim.org/discussion/mail_message.php?id=11226 -- Benjamin Hawkes-Lewis *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
RE: [WSG] table inside a dd?
Thanks Ben and Christian for the replies, Ben thanks particularly for the links. Based on the accessibility bonuses of the methods you suggested I might opt out of the def list route and use headings. Thanks again. Tim -Original Message- From: li...@webstandardsgroup.org [mailto:li...@webstandardsgroup.org] On Behalf Of Benjamin Hawkes-Lewis Sent: Monday, 17 August 2009 5:47 PM To: wsg@webstandardsgroup.org Subject: Re: [WSG] table inside a dd? On 17/08/2009 06:18, Tim MacKay wrote: I am marking up product nutritional information and am thinking of doing it like so: dl dt The Product /dt dd Paragraph blurb about the product /dd dd table .etcTabular data of the nutritional information/.etc /table /dd /dl Is nesting the table within the def list valid markup? Yes. I'd tend to suggest using headings (or headings inside a list) instead of a definition list, so that each product has an entry in the effective document outline: h2The Product/h2 pblurb/p table captionNutritional information/caption ... /table More practically, this allows non-mouse users of Opera (http://www.opera.com/browser/tutorials/nomouse/) or assistive technology (http://www.freedomscientific.com/Training/Surfs-up/Navigating.htm) to skip effectively from one product to another, and surfaces the products in assistive technology heading lists. Some assistive technology does have some support for definition lists, but it's not especially pretty, which isn't surprising given the HTML spec suggests using the element for terms and descriptions, and also for dialogs: http://www.webaim.org/discussion/mail_message.php?id=11226 -- Benjamin Hawkes-Lewis *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
Re: [WSG] table inside a dd?
Hi, A little late to the thread, but how about: the contents of the table captionSample Complex Table/caption tr th abbr=page id=pageNoPage Name/th th id=catCategory/th th abbr=tool id=acc axis=test resultsAccessibility Tool Test/th th abbr=manual id=man axis=test resultsManual Test/th th abbr=jaws id=jaws axis=test resultsJAWS test/th /tr tr th id=homeHome/th td headers=home catCommon/td td headers=home acc4/td td headers=home man2/td td headers=home jaws3/td /tr tr th id=resResources Welcome/th tdResources/td td6/td td0/td /tr tr th colspan=2 id=totTotals:/th td headers=tot acc10/td td headers=tot man2/td td headers=tot jaws3/td /tr /table On Aug 17, 2009, at 5:27 PM, Tim MacKay wrote: Thanks Ben and Christian for the replies, Ben thanks particularly for the links. Based on the accessibility bonuses of the methods you suggested I might opt out of the def list route and use headings. Thanks again. Tim -Original Message- From: li...@webstandardsgroup.org [mailto:li...@webstandardsgroup.org] On Behalf Of Benjamin Hawkes-Lewis Sent: Monday, 17 August 2009 5:47 PM To: wsg@webstandardsgroup.org Subject: Re: [WSG] table inside a dd? On 17/08/2009 06:18, Tim MacKay wrote: I am marking up product nutritional information and am thinking of doing it like so: dl dt The Product /dt dd Paragraph blurb about the product /dd dd table .etcTabular data of the nutritional information/.etc /table /dd /dl Is nesting the table within the def list valid markup? Yes. I'd tend to suggest using headings (or headings inside a list) instead of a definition list, so that each product has an entry in the effective document outline: h2The Product/h2 pblurb/p table captionNutritional information/caption ... /table More practically, this allows non-mouse users of Opera (http://www.opera.com/browser/tutorials/nomouse/) or assistive technology (http://www.freedomscientific.com/Training/Surfs-up/Navigating.htm) to skip effectively from one product to another, and surfaces the products in assistive technology heading lists. Some assistive technology does have some support for definition lists, but it's not especially pretty, which isn't surprising given the HTML spec suggests using the element for terms and descriptions, and also for dialogs: http://www.webaim.org/discussion/mail_message.php?id=11226 -- Benjamin Hawkes-Lewis *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
[WSG] table inside a dd?
Hi all, Is it semantic markup to include a table of items ( in this case a nutritional information table ) as the contents of a dd within a definition list? I am marking up product nutritional information and am thinking of doing it like so: dl dt The Product /dt dd Paragraph blurb about the product /dd dd table .etcTabular data of the nutritional information/.etc /table /dd /dl Is nesting the table within the def list valid markup? Thanks J Tim *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
Re: [WSG] table inside a dd?
Certainly, as long as it's an appropriate usage of a table (which it sounds like it is). - Christian Tim MacKay wrote: Hi all, Is it semantic markup to include a table of items ( in this case a nutritional information table ) as the contents of a dd within a definition list? I am marking up product nutritional information and am thinking of doing it like so: dl dt The Product /dt dd Paragraph blurb about the product /dd dd table …etcTabular data of the nutritional information/…etc /table /dd /dl Is nesting the table within the def list valid markup? Thanks J Tim *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *** -- Christian Snodgrass CEO - Azure Ronin http://www.arwebdesign.net http://www.htmlblox.com Phone: 859.816.7955 *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***