HTML - tags - address tag

Revision:


Content

"address" tag : defines contact information syntax some examples


"address" tag : defines contact information

top

The <address> tag defines the contact information for the author/owner of a document or an article. The contact information can be an email address, URL, physical address, phone number, social media handle, etc. The text in the <address> element usually renders in italic, and browsers will always add a line break before and after the <address> element.

Attributes: the <address> element support the global attributes and event attributes.


Syntax

top

<address > . . . </address>


some examples

top
Written by Jon Doe.
Visit us at:
Example.com
Box 564, Disneyland
USA

Code:

                    <address style="margin-left:4vw;">
                        Written by <a href="mailto:[email protected]">Jon Doe</a>.<br> 
                        Visit us at:<br>
                        Example.com<br>
                        Box 564, Disneyland<br>
                        USA
                    </address>
                

You can contact us directly at [email protected].

Code:

                    You can contact us directly at <a mailto="[email protected]">
                    [email protected]</a>.
                

For more information on the above article, contact: ....

Codes:

                    <address style="margin-left:4vw;">
                        For more information on the above article, contact:
                            <a href="mailto:[email protected]">.... </a>
                    </address>