SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Addict jodmcc's Avatar
    Join Date
    Dec 2003
    Location
    Houston, Texas
    Posts
    227
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question What is correct way to show mailing addresses?

    I'm needing to know the best way to code mailing addresses or different business locations. I'm working with 6 different locations. Any help would be greatly appreciated.

    jodmcc

  2. #2
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,564
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    There is an <address> tag for that . Call me stupid for using w3schools as an example but it allows you to see it in action
    http://www.w3schools.com/TAGS/tag_address.asp
    Twitter-@Ryan_Reese09
    http://www.ryanreese.us -Always looking for web design/development work

  3. #3
    SitePoint Wizard silver trophybronze trophy
    Join Date
    Jul 2008
    Location
    New York, NY
    Posts
    1,432
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The <address> tag defines the contact information for the author or owner of a document.
    So the address tag would not be appropriate in the case given. You could use microformats

  4. #4
    Robert Wellock silver trophybronze trophy xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,316
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    Typically the ADDRESS, which is "meta data" is used for 'contact' addresses of the webmaster or owner of the site this can either be physical 'bricks-and-mortar' or logical as in an e-mail address, telephone number or feedback. The ADDRESS can also be used to provide contact information for a portion of a document, typically a FORM, i.e. contact details for an order form for additional information/questions.

  5. #5
    Mouse catcher silver trophy
    Stevie D's Avatar
    Join Date
    Mar 2006
    Location
    Yorkshire, UK
    Posts
    5,838
    Mentioned
    114 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by jodmcc View Post
    I'm needing to know the best way to code mailing addresses or different business locations. I'm working with 6 different locations. Any help would be greatly appreciated.
    As others have said, if it is the main contact point for the page in question, you can use the <address> element. But you shouldn't use this for general postal addresses otherwise, then <div> or <p> will be a better bet.

    Whether you use <address>, <p> or <div>, postal addresses are one of the examples where you can legitimately use <br> to separate the lines of the address.

  6. #6
    Follow: @AlexDawsonUK silver trophybronze trophy AlexDawson's Avatar
    Join Date
    Feb 2009
    Location
    England, UK
    Posts
    8,111
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    I would be tempted to use purpose built microformats to present the address, this allows search engines, social networks and address book software (supporting hCard or converted vCard) to import the contents (a good thing for your site). It's just something to give your code some "extra" semantic value.

    http://microformats.org/wiki/hcard#Live_example


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •