الوسم <a> (anchor) هو الذي ينشئ الروابط، والخاصية href تحدد وجهتها:
<a href="https://example.com">Visit Example</a>
<a href="/about">About us</a>
<a href="#contact">Go to contact section</a>
<a href="mailto:hello@example.com">Email us</a>
فتح في تبويب جديد
<a href="https://example.com" target="_blank" rel="noopener">Example</a>
وماذا عن link؟
الوسم <link> ليس للروابط التي ينقر عليها الزائر. يوضع في <head> لربط الصفحة بملفات أخرى، مثل CSS:
<link rel="stylesheet" href="style.css">
نصيحة: اجعل نص الرابط واضحًا، مثل “تحميل دليل SQL” بدل “اضغط هنا”.