HTML address 标签
htmlweb developmentfront end technology更新于 2025/6/14 20:28:17
HTML 中的 address 地址标签用于设置文档的联系信息/地址。例如,如果您想在公司网站上设置公司地址,则可以在 <address> 标签下进行设置。
现在让我们看一个在 HTML 中实现地址标签的示例。−
示例
<!DOCTYPE html> <html> <body> <h2>Coding Ground</h2> <h3>Compilers for Programming Languages and Web Technologies</h3> <nav> <a href="/compile_java_online.php">Java</a> | <a href="/php_terminal_online.php">PHP</a> | <a href="/online_jquery_editor.php">jQuery</a> | <a href="/compile_c_online.php">C</a> | <a href="/compile_cpp_online.php">C++</a> | <a href="/online_angularjs_editor.php">AngularJS</a> </nav> <p>We also have a compiler for <acronym title="JavaScript">JS</acronym> libraries.</p> <address> Contact us at <a href="mailto:contact@tutorialspoint.com">admin</a>.<br> 4th Floor,<br> Incor9 Building, <br> Kavuri Hills, <br> Madhapur, Hyderabad,<br> Telangana 500081 </address> </body> </html>
输出

在上面的例子中,我们使用 <address> 元素设置了公司的地址−
<address> Contact us at <a href="mailto:contact@tutorialspoint.com">admin</a>.<br> 4th Floor,<br> Incor9 Building, <br> Kavuri Hills, <br> Madhapur, Hyderabad,<br> Telangana 500081 </address>
其中,我们还设置了电子邮件 - 使用 mailto −
<a href="mailto:contact@tutorialspoint.com">admin</a>
相关文章
有用资源
html 参考教程 - 该教程包含有关 html 的更多信息:https://www.cainiaomax.com/html/

