- Introduction to html Anchor tag in hindi
- href attribute of HTML anchor tag in hindi
- Specify location for Link using target attribute in hindi
- Appearance of HTML anchor tag in Hindi
Introduction to html Anchor tag
HTML anchor tag एक परिभाषित करता है हाइपरलिंक को परिभाषित करता है जो एक page से दूसरे page को लिंक करता है। यह अन्य webpages के साथ-साथ files, location या किसी भी URL पर हाइपरलिंक बना सकता है। “Href” attribute HTML टैग का सबसे महत्वपूर्ण attribute है। और जो destination page या URL से लिंक करता है।
href attribute of HTML anchor tag in hindi
File को जोड़ने के address को परिभाषित करने के लिए href attribute का उपयोग किया जाता है। दूसरे शब्दों में, यह destination page को pointout करता है।
HTML anchor tag का syntax नीचे दिया गया है।
<a href = "..........."> Link Text </a>
आइए HTML एंकर टैग का एक उदाहरण देखें।
<a href=“second.html”>Click for Second Page</a>
Specify location for Link using target attribute in hindi
अगर हम उस लिंक को दूसरे पेज पर खोलना चाहते हैं तो हम <a> टैग के target attribute का उपयोग कर सकते हैं। इसकी मदद से link अगले पेज में ओपन होगा।
उदाहरण:
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<p>Click on <a href="https://hinditutorialspoint.com/" target="_blank"> this-link </a>to go on home page of hinditutorialspoint.</p>
</body>
</html>
Note:
- Target attribute केवल anchor tag में href attribute के साथ उपयोग कर सकते हैं।
- यदि हम target attribute का उपयोग नहीं करेंगे तो लिंक उसी page में खुल जाएगा।
Appearance of HTML anchor tag in Hindi
एक unvisited लिंक को underline और नीले रंग में प्रदर्शित किया गया है।
एक visited लिंक underline और बैंगनी दिखाया गया है।
एक active लिंक underlined और लाल है।