This article mainly introduces the usage of address tag. Maybe some friends are a little unfamiliar with the address tag, and may also have questions about what address means. After all, in our daily website building process, this tag is rarely used. But as the saying goes, existence is reasonable. Each tag in HTML has its own definition and use, but the use is different.
First introduce the definition of the address tag:
It defines the contact information of the author/owner of the document or article, which is used to define the address tag user signature or the identity of the article author.
1. If the
element is inside a element, it represents document contact information. 2. If the
element is inside an element, it represents the article's contact information. Note: Text within the
element is usually rendered in italics. Most browsers add lines before and after the address element. (address tag block-level element) The sample code for address tag usage is as follows:
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>address标签用法示例</title>
<meta charset="UTF-8">
<style type="text/css">
</style>
</head>
<body>
<address>
作者: <a href="#">PHP中文网</a>.<br>
日期:2018年8月14日
</address>
</body>
</html>
The effect is as follows:
As shown in the figure, the text is rendered in italics.
Note here:
tag should not be used to describe a mailing address unless it is part of the contact information. The
element is usually enclosed within the
The above is the detailed content of What does address mean in html? (code example). For more information, please follow other related articles on the PHP Chinese website!
Statement: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