HTML HTML Tutorial HTML Forms HTML Graphics HTML Media HTML APIs HTML Tags



HTML Tag: address

The <address> tag in HTML is used to define the contact information for the author or owner of a document or article. This tag is typically used at the end of a document or article, but it can also be used within the body of the document to provide contact information for a specific section or paragraph.

Brief Explanation of HTML Tag: Address

The <address> tag is a semantic tag that provides information about the author or owner of a document or article. This tag is used to provide contact information such as the author's name, email address, physical address, or phone number. The <address> tag is typically used at the end of a document or article, but it can also be used within the body of the document to provide contact information for a specific section or paragraph.

The <address> tag is an inline element, which means that it is used to define a section of text within a larger block of text. This tag is often used in conjunction with other semantic tags such as <article>, <section>, or <footer> to provide additional information about the content of the document or article.

Code Examples in HTML Tag: Address

Here are some examples of how the <address> tag can be used in HTML:

Example 1:

<article>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam euismod, velit vel bibendum bibendum, nunc sapien bibendum velit, vel bibendum velit sapien vel velit. Sed euismod, velit vel bibendum bibendum, nunc sapien bibendum velit, vel bibendum velit sapien vel velit.
<address>
Written by John Doe
Email: john.doe@example.com
Phone: 555-555-5555
</address>
</article>

Example 2:

<section>

Section Title

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam euismod, velit vel bibendum bibendum, nunc sapien bibendum velit, vel bibendum velit sapien vel velit. Sed euismod, velit vel bibendum bibendum, nunc sapien bibendum velit, vel bibendum velit sapien vel velit.

<address>
Written by Jane Smith
Email: jane.smith@example.com
Phone: 555-555-5555
</address>
</section>

Example 3:

<footer>

© 2021 Example Company. All rights reserved.

<address>
123 Main Street
Anytown, USA 12345
Phone: 555-555-5555
</address>
</footer>

References

Activity