2 min read · Free · No login needed
Links are what make the web a web. The <a> tag (short for anchor) creates a link, and the href attribute says where it goes. The text between the tags is what the visitor clicks.
<a href="https://kamaldnp.com">KAMALDNP</a>. Always use the full address starting with https://.<a href="about.html">About Us</a>. Use a relative path, no domain needed.<a href="#contact">Jump to Contact</a>.<a href="mailto:support@kamaldnp.com">Email Us</a>.<a href="tel:+918318013442">Call Us</a>.Add target="_blank" and, for safety, rel="noopener": <a href="https://example.com" target="_blank" rel="noopener">Open in new tab</a>. Use this for external links, so your visitor does not leave your site. For links inside your own site, let them open in the same tab.
Write link text that describes the destination: "Download the BTEUP syllabus" is good; "click here" is bad. Google reads link text to understand what the linked page is about, and screen-reader users often jump from link to link without reading the surrounding words.
<img> tag between the <a> tags.<!DOCTYPE html>
<html>
<head>
<title>Links</title>
</head>
<body>
<a href="https://kamaldnp.com">KAMALDNP Academy</a><br>
<a href="about.html">About Us</a><br>
<a href="#contact">Jump to Contact</a><br>
<a href="mailto:support@kamaldnp.com">Email Us</a>
<h2 id="contact">Contact</h2>
<p>Reach us any time.</p>
</body>
</html>
test.html, open it in your browser, and change the text to see what happens. That is how you learn — by changing things and watching the result.Finish all 30 lessons, pass the test (80%), pay ₹10 and get your certificate.
Take the testFree tutorials teach you the basics. Our paid courses add live projects, mentorship and a certificate.
Browse all coursesAsk about courses, website & more
Request human callback:
Download karne ke liye login karo. Login ke baad yahi page pe rahoge!
Naya ho? Register karo →