एचटीएमएल <इन्स> टैग
उदाहरण
हटाए गए भाग के साथ एक पाठ, और एक नया, सम्मिलित भाग:
<p>My favorite color is <del>blue</del> <ins>red</ins>!</p>
परिभाषा और उपयोग
टैग एक टेक्स्ट को <ins>
परिभाषित करता है जिसे किसी दस्तावेज़ में डाला गया है। ब्राउज़र आमतौर पर सम्मिलित पाठ को रेखांकित करेंगे।
युक्ति: हटाए गए टेक्स्ट को मार्कअप करने के लिए <del> टैग भी देखें।
ब्राउज़र समर्थन
Element | |||||
---|---|---|---|---|---|
<ins> | Yes | Yes | Yes | Yes | Yes |
गुण
Attribute | Value | Description |
---|---|---|
cite | URL | Specifies a URL to a document that explains the reason why the text was inserted/changed |
datetime | YYYY-MM-DDThh:mm:ssTZD | Specifies the date and time when the text was inserted/changed |
वैश्विक गुण
<ins> टैग HTML में वैश्विक विशेषताओं का भी समर्थन करता है ।
घटना गुण
<ins>
टैग HTML में ईवेंट विशेषताओं का भी समर्थन करता है ।
और ज्यादा उदाहरण
उदाहरण
<del> और <ins> को स्टाइल करने के लिए CSS का उपयोग करें:
<html>
<head>
<style>
del {background-color:
tomato;}
ins {background-color: yellow;}
</style>
</head>
<body>
<p>My favorite color is <del>blue</del> <ins>red</ins>!</p>
</body>
</html>
संबंधित पृष्ठ
एचटीएमएल डोम संदर्भ: आईएनएस वस्तु
डिफ़ॉल्ट सीएसएस सेटिंग्स
अधिकांश ब्राउज़र <ins>
निम्न डिफ़ॉल्ट मानों के साथ तत्व प्रदर्शित करेंगे:
उदाहरण
ins {
text-decoration: underline;
}