mozilla
Your Search Results

    The adr microformat

    The adr microformat represents an address, either for a physical location or a mailing address.

    Properties

    The value of each property is either a string or undefined unless anything else is specified.

    Property Description
    type

    The type of address. The value is either undefined or a non-empty array where each element is one of the following strings.

    work
    A work address.
    home
    A home address.
    pref
    A preferred address; use this to indicate that a specific address is the preferred address for the person or company it's associated with.
    postal
    A mailing address.
    dom
    A domestic address.
    intl
    An international address.
    parcel
    An address for shipping packages and parcels.
    post-office-box The post office box number, if there is one.
    street-address The street address or addresses. The value is either undefined or a non-empty array where each element is a string.
    extended-address The extended address.
    locality The locality for the address.
    region The region for the address.
    postal-code The postal or ZIP code for the address.
    country-name The name of the country in which the address is located.

     

     

    Methods

    There is one method you can call on the adr microformat.

    toString()

    Returns the address as a string.

    addressString = adr.toString();
    
    Parameters

    None.

    Return value

    The address as a single string.

    See also

    Document Tags and Contributors

    Contributors to this page: Dikrib, Sheppy, Mgjbot, Suguni, Kohei
    Last updated by: Dikrib,