Anchor Tag Basics
📖 Scenario: You are creating a simple webpage for a local library. You want to add links so visitors can easily find the library's homepage and the contact page.
🎯 Goal: Build a basic HTML page with two anchor tags. One link should go to the library's homepage, and the other should go to the contact page.
📋 What You'll Learn
Create an HTML skeleton with
<!DOCTYPE html>, <html>, <head>, and <body> tagsAdd two anchor tags (
<a>) inside the bodyThe first anchor tag must link to
https://www.locallibrary.com with the text 'Library Homepage'The second anchor tag must link to
https://www.locallibrary.com/contact with the text 'Contact Us'Use the
href attribute correctly in both anchor tags💡 Why This Matters
🌍 Real World
Creating navigation links is a fundamental skill for building websites that help users find important pages easily.
💼 Career
Web developers frequently add and manage links to connect different parts of a website or to external resources.
Progress0 / 4 steps