Hi Joe Just curious - why a separate dl for each property - surely this is just one list of properties?
Elizabeth Spiegel Web editing 0409 986 158 GPO Box 729, Hobart TAS 7001 www.spiegelweb.com.au -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joseph Taylor Sent: Tuesday, 5 August 2008 12:05 AM To: [email protected] Subject: Re: [WSG] dl question To clarify, when people use a definition list for something other than actual definitions and terms, they usually use the <dt>'s and <dd>'s to represent the relationship of the items within the <dl>. For example - markup for a list of properties for sale: <dl> <dt>Photo of Property</dt> <dt>Address of Property</dt> <dd>Price of Property</dd> <dd>Beds and Baths</dd> </dl> <dl> <dt>Photo of Property</dt> <dt>Address of Property</dt> <dd>Price of Property</dd> <dd>Beds and Baths</dd> </dl> <dl> <dt>Photo of Property</dt> <dt>Address of Property</dt> <dd>Price of Property</dd> <dd>Beds and Baths</dd> </dl> <dl> <dt>Photo of Property</dt> <dt>Address of Property</dt> <dd>Price of Property</dd> <dd>Beds and Baths</dd> </dl> In this case the <dt>'s handle the terms, or way we identify a property - by a picture of it or by address. The <dd>'s handle the attributes of the property: bedrooms, baths, price etc. You can apply this principle to almost any information - sometimes a tabular layout works even better - it just depends on your needs. The <dl> used in this examples works great on crappy cellphones since its elements stack. Joseph R. B. Taylor /Designer / Developer/ -------------------------------------- Sites by Joe, LLC /"Clean, Simple and Elegant Web Design"/ Phone: (609) 335-3076 Fax: (866) 301-8045 Web: http://sitesbyjoe.com Email: [EMAIL PROTECTED] Stuart Foulstone wrote: > A <dl> is a LIST of definition terms and their description. > > <dt> is a definition term to be described (not title). > > <dd> is description of the definition term. > > > See http://www.w3.org/TR/html401/struct/lists.html#h-10.3 > > > On Mon, August 4, 2008 4:20 am, [EMAIL PROTECTED] wrote: > >> Hi all, >> >> I was under the impression a <dl> could only contain one <dt> and one >> or many <dd>'s..... >> >> But I have just come across a piece of code that uses multiple <dt>'s >> in the one <dl>.... >> >> Upon further investigation, it seems this is legitimate >> practice....but does it make sense?!?! >> >> Semantically, isn't the whole point of a <dl> to use definition data >> tags (<dd>'s) to describe a definition title (<dt>)!? Does it make >> sense to have multiple definition titles in the same <dl>?! Or does >> it make more sense to have a seperate <dl> for each <dt>?? >> __ >> Christian Fagan >> Fagan Design >> fagandesign.com.au >> >> >> ******************************************************************* >> List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm >> Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm >> Help: [EMAIL PROTECTED] >> ******************************************************************* >> >> >> > > > > > ******************************************************************* > List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm > Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm > Help: [EMAIL PROTECTED] > ******************************************************************* > > ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ******************************************************************* ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *******************************************************************
