How to use the address tag, doubts?


Is it correct to only use the element <address> for an email?

For example:

<address><a href="mailto:[email protected]">[email protected]</a></address>

Examples that I always see are something like street address, city, etc.

Would you have any rules telling me where I can or can not add this <address> element, or can I put it wherever I want? obg:)

asked by Void 18.07.2016 в 01:37

1 answer


It's not wrong to just put an email because this element is meant to insert contact information about your page when used globally within the <body> element or on an author in cases where it is being used within the element <article> .

It can be used to report from a simple contact email as in your case, as well as to inform a complete address of a physical location. Here are some examples below.

Simple example:

    <p><a href="">MIT</a></p>

Example with address:

    Rua Leonardo Mathias, 100, Sala 30<br>
    Vila Roitman - Santos/SP, 11244-444 </p>
      <abbr title="Phone">Tel:</abbr> (11) 5555-4577 

Example with article:

    <h1>The Very First Rule of Life</h1>
    <p><time pubdate datetime="2009-10-09T14:28-08:00"></time></p>    
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Numquam autem similique totam molestias dolorum, eius iusto cupiditate ex debitis fuga. Quaerat minima harum esse iste voluptates quod, magnam placeat sapiente.</p>
  Written by <a href="mailto:[email protected]">Jon Doe</a>.<br>
  Visit us at:<br><br>
  Box 564, Disneyland<br>

Usually this element is used within the <footer> element, but you can use it in other elements as well, as long as it is being used for contact information, so you will not be wrong.

18.07.2016 / 04:00