HTML - Links in Hindi




दोस्तों इस chapter में हम HTML Links के बारे में जानेंगे तो चलिए शुरू करते है, HTML में Link का उपयोग किसी यूजर को किसी एक document से किसी another document पर refer करने के लिए किया जाता है. आपने कई बार website पर कई Link देखे होगे और उनका use भी किया होगा दोस्तों href attribute का उपयोग करके आप किसी अन्य document में एक HTML page में एक Link को build कर सकते हैं।

HTML Link को डिफाइन करने के लिए हम <a> tag का उपयोग करते है <a> tag बताता है कि Link कहां आरंभ हुआ है और </a> tag बताता है कि Link कहां समाप्त होता है। इन दोनों के बीच में आप जो भी content डालोगे वो सब कुछ एक Link के रूप में काम करेगा।

HTML Links कैसे बनायें ?

HTML Links बनाने के लिए <a></a> Tag का use किया जाता है, और <a></a> Tag के साथ href attribute का भी उपयोग किया जाता है, href attribute में उस वेब पेज के link को डाला जाता है जिसको हम अपने किसी भी web page से जोड़ना चाहते है।

दोस्तों किसी भी Link को target और href attribute से defined किया जाता है। यह link निरपेक्ष हो सकता है, जैसे www.htmltpoint.com या यह वर्तमान page के relative हो सकता है।

href − इस attribute से आप उस page का address डिफाइन करते है जो आपको Link के click होने पर show होता है।

target − इस attribute से आप target को specified करते है कि Link किए गए document को कहां पर खोलना है।

Types of Link

  • Internal Links

  • External Links

दोस्तों जैसा की आप जानते होंगे HTML की सहायता से link create करने के लिए हम <a> का tag यूज़ करते है. चलये अब हम जानते है इसको कैसे use करना है, हम इस tag का normal उदाहरण देखते है।

Example

<!DOCTYPE html>
<html>
<head>
    <title>This is my web page</title>
</head>
<body>
    <h1>This is my web page</h1>
    <h2>This is the paragraph</h2>
    <p>This is the paragraph web HTML page</p>
    <h2>This is point</h2>
    <p>Read the HTML</p>
    <h2>This is the html tutorial</h2>
    <p><a href="http://htmltpoint.com/">Htmltpoint</a></p>
</body>
</html>

Result

This is my web page

This is my web page

This is the paragraph

This is the paragraph web HTML page

This is point

Read the HTML

This is the html tutorial

Htmltpoint