Address tag
Address tag in HTML?
The "Address" tag in HTML is used to define contact information for the author or owner of a document. It's often used to provide details such as a physical address, email, or phone number.
The "Address" tag is like a digital business card. It's used to provide contact information or details about the author of a document.
Example of Address tag
Let's use the "Address" tag to provide contact information for a company:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Welcome to Learn Fasta</title>
<style>
body {
font-family: 'Arial', sans-serif;
text-align: center;
margin-top: 50px;
font-size: 18px;
}
h1 {
color: #3498db; /* Blue color for heading */
}
address {
margin-top: 20px;
font-style: italic;
}
a {
color: #e74c3c; /* Red color for link */
}
</style>
</head>
<body>
<h1>Welcome to Our Learn Fasta</h1>
<address>
Contact us at:
Email: <a href="mailto:info@example.com">info@example.com</a><br>
Phone: 123-456-7890<br>
Address: 123 Main Street, Cityville
</address>
</body>
</html>