我们使用标签在网页上提供联系方式。 html
标签定义网页上文档或文章作者的联系信息。 联系信息可以是建筑物位置、电子邮件地址、url、电话号码等。
元素中的文本通常以斜体格式呈现,并且始终会在 前后添加换行符> 元素。 语法以下是
标记的语法。<address>the contact information</address>
示例以下是标记的示例程序。
<!doctype html><html><head> <title>html address tag</title></head><body> <address> usa </address></body></html>
示例以下是 标记的另一个示例程序。
<!doctype html><html><body> <p>the address of dlf building, hyderabad</p> <address> cybercity plot.no: 129,130,132<br> gachibowli rd,<br> colony:aphb colony,<br> city:hyderabad,<br> state:telangana, <br> pincode:500019<br> </address></body></html>
示例在此,我们使用 css 更改了 标签的默认样式。
<!doctype html><html><head> <title>html address tag</title> <style> address { display: block; font-family: lucida console, courier new, monospace; }; </style></head><body> <h1>contact us</h1> <address> 52nd street<br> new york,<br> ny 10019<br> usa </address></body></html>
以上就是如何在html中标记邮政地址?的详细内容。
