علامة <ins> HTML


مثال

نص به جزء محذوف وجزء جديد مدرج:

<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 .



مزيد من الأمثلة

مثال

استخدم CSS لتصميم <del> و <ins>:

<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>

الصفحات ذات الصلة

مرجع DOM HTML: كائن Ins


إعدادات CSS الافتراضية

ستعرض معظم المتصفحات <ins>العنصر بالقيم الافتراضية التالية:

مثال

ins {
  text-decoration: underline;
}