HTML Address Tag | HTML Tag - Basic example of how the `` element can be used in HTML

HTML <address> Tag :

The HTML `<address>` element is used to define contact information for the author or owner of a document. It is typically used to provide details such as the name, physical address, email address, and/or phone number of the document's author or owner. The `<address>` element is often placed at the end of a document or a section within the `<footer>` element.

HTML <address> Tag - Basic example of how the `<address>` element can be used in HTML
HTML address Tag

Here's a basic example of how the `<address>` element can be used in HTML:

html
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Contact Information</title>
</head>
<body>

    <header>
        <h1>Welcome to My Website</h1>
    </header>

    <main>
        <!-- Main content of the page goes here -->
    </main>

    <footer>
        <address>
            <p>Contact the author:</p>
            <p>Name: John Doe</p>
            <p>Email: <a href="mailto:john.doe@example.com">john.doe@example.com</a></p>
            <p>Phone: +1 (555) 123-4567</p>
            <p>Address: 123 Main Street, Cityville, Country</p>
        </address>
    </footer>

</body>
</html>


In this example, the `<address>` element contains information about the author, such as their name, email address, phone number, and physical address. It's important to note that the `<address>` element is not restricted to only contact information; it can be used to represent any kind of contact information or details about the authorship of the document.

Keep in mind that the `<address>` element is a semantic HTML5 element, which means it carries meaning about the structure of the document. Using semantic elements helps browsers and developers better understand the content and context of the information provided.
ShowHideComments