Home Web Front-end HTML Tutorial How to use html address tag? Detailed explanation of how to use the html address tag

How to use html address tag? Detailed explanation of how to use the html address tag

Aug 20, 2018 pm 02:14 PM
address html

html 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:

&lt;address&gt;
Written by &lt;a href=&quot;mailto:webmaster@example.com&quot;&gt;Donald Duck&lt;/a&gt;.&lt;br&gt; 
Visit us at:&lt;br&gt;
Example.com&lt;br&gt;
Box 564, Disneyland&lt;br&gt;
USA
&lt;/address&gt;
Copy after login

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:

&lt;address&gt;文档编写:php中文网&lt;/address&gt;
&lt;address&gt;
本文的作者:&lt;a href=&quot;www.php.cn&quot;&gt;php&lt;/a&gt;
&lt;/address&gt;
Copy after login

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

#html What is the definition of colspan attribute? Introduction to how to use the html colspan attribute

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!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article

Hot Article

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Nested Table in HTML Nested Table in HTML Sep 04, 2024 pm 04:49 PM

Nested Table in HTML

HTML margin-left HTML margin-left Sep 04, 2024 pm 04:48 PM

HTML margin-left

Table Border in HTML Table Border in HTML Sep 04, 2024 pm 04:49 PM

Table Border in HTML

HTML Table Layout HTML Table Layout Sep 04, 2024 pm 04:54 PM

HTML Table Layout

Moving Text in HTML Moving Text in HTML Sep 04, 2024 pm 04:45 PM

Moving Text in HTML

HTML Ordered List HTML Ordered List Sep 04, 2024 pm 04:43 PM

HTML Ordered List

HTML onclick Button HTML onclick Button Sep 04, 2024 pm 04:49 PM

HTML onclick Button

How do you parse and process HTML/XML in PHP? How do you parse and process HTML/XML in PHP? Feb 07, 2025 am 11:57 AM

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

See all articles