Links and Anchors — <a> Tag
Links are the foundation of the web. The <a> tag (anchor) creates hyperlinks between pages. Without links, the web would be billions of disconnected islands — no navigation, no sharing, no search engines.
Basic Links
<!-- External link: to another website --> <a href="https://ciweb.in" target="_blank" rel="noopener noreferrer"> Visit CIWeb </a> <!-- Internal link: to another page on your site --> <a href="about.html">About Us</a> <!-- Email link: opens email app --> <a href="mailto:hi@ciweb.in">Email Us</a> <!-- Phone link: tappable on mobile --> <a href="tel:+911234567890">Call Us</a> <!-- Anchor link: scroll to section on same page --> <a href="#courses">See Courses</a> <section id="courses">...courses content...</section>
Navigation Menu with Links
<nav aria-label="Main navigation"> <a href="index.html">Home</a> <a href="blogs.html">Blogs</a> <a href="courses.html">Courses</a> <a href="contact.html">Contact</a> </nav>
Image as a Link
<!-- Put any element inside a link to make it clickable --> <a href="index.html"> <img src="logo.png" alt="CIWeb Logo — go to homepage" width="120" height="40" /> </a>
Link text like "click here" or "read more" has zero SEO value. Google uses anchor text to understand the destination page. Always write descriptive link text: "Download the CIWeb HTML PDF guide" is infinitely better than "click here".
In the early web (1991), links were used to "anchor" to positions within long documents. href stands for "hypertext reference". The name anchor stuck even as links evolved to navigate between pages and websites.