[WSG] best way to style addresses
Hi there, I am working on a page that involves with hundred of address in different locations/cities. What is the best way to do? unordered list, definition list or table data? I am thinking to make two columns for address. Did a similar page sometimes ago with unordered list with two columns floated, because some address are 4 lines, some are 3, the result wasn't good. Thanks! tee ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] best way to style addresses
Example: ADDRESS Newsletter editorBR J.R. BrownBR 8723 Buena Vista, Smallville, CT 01234BR Tel: +1 (123) 456 7890 /ADDRESS with whatever styling provided by CSS you care for. for more details see the link below http://www.w3.org/MarkUp/html3/address.html tee wrote: Hi there, I am working on a page that involves with hundred of address in different locations/cities. What is the best way to do? unordered list, definition list or table data? I am thinking to make two columns for address. Did a similar page sometimes ago with unordered list with two columns floated, because some address are 4 lines, some are 3, the result wasn't good. Thanks! tee ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help ** ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] best way to style addresses
I remember this question coming up before on this list. IIRC we concluded that address / was only used for contact info for the author of the document. from W3C HTML 4.01 spec: The ADDRESS element may be used by authors to supply contact information for a document or a major part of a document such as a form. This element often appears at the beginning or end of a document. For example, a page at the W3C Web site related to HTML might include the following contact information: ADDRESS A href=../People/Raggett/Dave Raggett/A, A href=../People/Arnaud/Arnaud Le Hors/A, contact persons for the A href=ActivityW3C HTML Activity/ABR $Date: 1999/12/24 23:37:50 $ /ADDRESS Personally, I'd probably just go... div class=address 123 Some Stbr / Somewherebr / SomeState1234 /div On 12/22/05, sam sherlock [EMAIL PROTECTED] wrote: Example: ADDRESS Newsletter editorBR J.R. BrownBR 8723 Buena Vista, Smallville, CT 01234BR Tel: +1 (123) 456 7890 /ADDRESS with whatever styling provided by CSS you care for. for more details see the link below http://www.w3.org/MarkUp/html3/address.html tee wrote: Hi there, I am working on a page that involves with hundred of address in different locations/cities. What is the best way to do? unordered list, definition list or table data? I am thinking to make two columns for address. Did a similar page sometimes ago with unordered list with two columns floated, because some address are 4 lines, some are 3, the result wasn't good. Thanks! tee ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help ** ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help ** -- Ben Wong e: [EMAIL PROTECTED] w: http://blog.onehero.net ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] best way to style addresses
G'day sam sherlock wrote: for more details see the link below http://www.w3.org/MarkUp/html3/address.html Which is HTML 3 (quite outdated) but says... The ADDRESS element specifies such information as address, signature and authorship for the current document But... tee wrote: I am working on a page that involves with hundred of address in different locations/cities. What is the best way to do? unordered list, definition list or table data? Yes, I've used the address element for such purposes too, because I did not know the intention of that element. But going by the quote above, I don't think address would be appropriate here. A *list* of addresses would probably be best done as a list (ul or ol) until (x)HTML comes up with something more semantic. Maybe even a table would be semantic in this case - sounds similar to a database/mailing list where each row is a record and each column in that row a field (name, address, phone no. etc). Regards -- Bert Doorn, Better Web Design http://www.betterwebdesign.com.au/ Fast-loading, user-friendly websites ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] best way to style addresses
Tee, on Thursday, December 22, 2005 at 10:03 wsg@webstandardsgroup.org wrote: I am working on a page that involves with hundred of address in different locations/cities. What is the best way to do? unordered list, definition list or table data? I am thinking to make two columns for address. Did a similar page sometimes ago with unordered list with two columns floated, because some address are 4 lines, some are 3, the result wasn't good. The markup of addresses has been discussed earlier on this list. One thread was this: http://www.mail-archive.com/wsg@webstandardsgroup.org/msg21847.html I think you should base your decision on what the user needs to do with this list of addresses. If he has to search for a person, I would probably choose a sorted table. If it is a list of addresses, which doesn't need to be searched or which represents a hierarchical order, I'd choose an unordered list with each address marked up like this: dl class=address dt class=personName/dt dd class=streetStreet Number/dd dd class=cityZIP Citydd dd class=countryCountry/dd /dl (I don't like the address tag, because it can only be used with inline elements...) Probably there will be a better microformat for this, but I don't have the time to search for one now. Take a look at www.microformats.org But probably the near future will bring us a pattern for marking up addresses at John Allsopp's www.webpatterns.org regards Martin ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] best way to style addresses
tee wrote: Hi there, I am working on a page that involves with hundred of address in different locations/cities. What is the best way to do? unordered list, definition list or table data? how about this: http://microformats.org/wiki/hcard ? Chris ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **