रिलेटिव URL
अपनी ही वेबसाइट के पेजों को लिंक करने के लिए रिलेटिव URL उपयोग करें, जैसे /contact, /about_team। <a> टैग के href एट्रिब्यूट में पथ दें।
<a> टैग के मुख्य एट्रिब्यूट्स:
| क्र.सं. | एट्रिब्यूट और विवरण |
|---|---|
| 1 | href - URL निर्दिष्ट करता है |
| 2 | rel - वर्तमान और लिंक्ड डॉक्यूमेंट का संबंध (nofollow, external, author, bookmark) |
| 3 | target - लिंक कहां खुलेगा (_self, _blank, _parent, _top) |
उदाहरण
<!DOCTYPE html> <html>
<head> <title>HTML Relative URLs</title> </head>
<body>
<p>Our <a href="/about/about_team.htm">Team</a> comprises of programmers, writers, and analysts.</p>
</body>
</html>