علامة HTML <del>
مثال
نص به جزء محذوف وجزء جديد مدرج:
<p>My favorite color is <del>blue</del> <ins>red</ins>!</p>
المزيد من الأمثلة "جربها بنفسك" أدناه.
التعريف والاستخدام
تحدد العلامة <del>
النص الذي تم حذفه من المستند. عادة ما تضع المستعرضات خطًا بين النص المحذوف.
نصائح وملاحظات
نصيحة: انظر أيضًا إلى علامة <ins> لترميز النص المدرج.
دعم المتصفح
Element | |||||
---|---|---|---|---|---|
<del> | Yes | Yes | Yes | Yes | Yes |
صفات
Attribute | Value | Description |
---|---|---|
cite | URL | Specifies a URL to a document that explains the reason why the text was deleted/changed |
datetime | YYYY-MM-DDThh:mm:ssTZD | Specifies the date and time of when the text was deleted/changed |
السمات العالمية
تدعم <del>
العلامة أيضًا السمات العامة في HTML .
سمات الحدث
تدعم <del>
العلامة أيضًا سمات الحدث في 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: Del Object
إعدادات CSS الافتراضية
ستعرض معظم المتصفحات <del>
العنصر بالقيم الافتراضية التالية:
مثال
del {
text-decoration: line-through;
}