


How to use html address tag? Detailed explanation of how to use the html address tag
Aug 20, 2018 pm 02:14 PMhtml What is the usage of address tag? Detailed explanation of how to use the html address tag. Let's start with the content of this article, which mainly talks about the usage and definition of the html address tag, as well as the specific usage of the html address tag (with examples attached)
html address tag usage and Definition: The
<address> tag defines the contact information for the author/owner of a document or article.
If the <address> element is inside a <body> element, it represents document contact information.
If the <address> element is inside an <article> element, it represents the article's contact information. Text within the
<address> element is usually rendered in italics. Most browsers add lines before and after the address element.
HTML <address> Tag Example
Contact information for Example.com:
<address> Written by <a href="mailto:webmaster@example.com">Donald Duck</a>.<br> Visit us at:<br> Example.com<br> Box 564, Disneyland<br> USA </address>
html address tag usage:
to define the address, signature, or authorship of the document.
<address> can define an address (such as an email address). You should use it to define the address, signature, or authorship of the document.
Tags like this are indeed rarely used. The purpose of using these tags is for better semantics. Specific information such as address, signature, author, originator of this document. The content of the ADDRESS element is shown in italics.
All major browsers support the <address> tag.
The<address> tag supports HTML global attributes. The <address> tag supports HTML event attributes.
HTML 4.01 does not support the <article> tag, so in HTML 4.01 the <address> tag always defines the contact information of the document's author/owner.
html How to use the address tag:
Generally, there will be some website contact address information that needs to be displayed on the web page. These contact address information, such as the company's The address can be the <address> tag. You can also define an address (such as an email address), signature, or authorship of the document.
Syntax:
<address>Contact address information</address>
For example:
<address>文档编写:php中文网</address> <address> 本文的作者:<a href="www.php.cn">php</a> </address>
The style displayed on the browser is italic , if you don’t like italics, of course you can, you can use css styles in later lessons to modify the default style of the <address> tag.
Tip: The <address> tag should not be used to describe a mailing address unless it is part of the contact information.
Tip: The <address> element is usually contained within a <footer> element along with other information.
[Related recommendations]
html What is the role of the link tag? Definition and attribute introduction of html link tag
The above is the detailed content of How to use html address tag? Detailed explanation of how to use the html address tag. For more information, please follow other related articles on the PHP Chinese website!

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

How do you parse and process HTML/XML in PHP?
