HTML

Address Text


In HTML, the <address> element is used to provide contact information for the author or owner of a document or an article. It's typically used to include information such as postal addresses, email addresses, and phone numbers.

 

Here's an example of how you can use the <address> element:

<address>
    John Doe<br>
    123 Main Street<br>
    Anytown, USA<br>
    Email: <a href="mailto:john@example.com">john@example.com</a><br>
    Phone: 555-123-4567
</address>

In this example, the <address> element contains contact information for John Doe, including their name, street address, email address (linked with mailto:), and phone number.

 

However, it's worth noting that the <address> element can also be used to represent contact information within a <footer> element, indicating contact information for the owner of the document, article, or section of a page.

<footer>
    <address>
        John Doe<br>
        123 Main Street<br>
        Anytown, USA<br>
        Email: <a href="mailto:john@example.com">john@example.com</a><br>
        Phone: 555-123-4567
    </address>
</footer>