- Introduction to HTML link in Hindi
- Link tag in HTML Hindi
- Attribute of link tag in HTML Hindi
Introduction to HTML Link
html मे link tag बहुत ही important tag होता है क्योकि link tag के द्वारा css file को html document से link करते है | link tag के द्वारा css file ही नही बल्कि title बार मे icons का use करने के लिए भी किया जाता है link tag के कुछ attribute है | जिनका use करके हम link tag को निर्देश देते है | तो चलिए अब link tag के बारे मे full details से जानते है | कैसे work करता है link tag |
Rel Attribute
इस attribute का use file का type बताने के लिए किया जाता है और जब हम css file include करते है तो rel attribute मे value stylesheet पास करते है |
<link rel="stylesheet">
जब title बार मे icons को include करने के लिए rel attribute का use करते है तो हमे value icon पास करना पड़ता है नही तो हमारा icon load नही होगा |
<link rel="icon">
Type Attribute
जब हम type attribute का use करते है तो css के लिए value “text/css” पास करते है | नही तो हमारा css file successfully include नही होता है |
<link rel="stylesheet" type="text/css">
जब हम icon को include करने के लिए type attribute का use करते है तो हमे value “image/gif” पास करना पड़ता है | यानी image का type बताने के लिए type attribute का use किया जाता है |
<link rel="icon" type="image/gif">
Href Attribute
href attribute का use दोनों field मे same होता है | यानि href attribute का use file का address देने के लिए किया जाता है | अब वह css file हो या icon अब निचे दिये गये code देखे |
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="icon" type="image/gif" href="demo_icon.gif">
Size Attribute
इस attribute का use only icon के लिए किया जाता है | कभी कभी icon का size resize करना पड़ता है तो इस condition मे size attribute का use कर सकते है |
<link rel="icon" type="image/gif" href="demo_icon.gif" sizes="16x16">
HTML Script Tag | HTML Marquee Tag |
Previous | Next |
---|