سمة ترجمة HTML
مثال
حدد أنه لا ينبغي ترجمة بعض العناصر:
<p translate="no">Don't translate this!</p>
<p>This can be translated to any language.</p>
التعريف والاستخدام
تحدد السمة translate
ما إذا كان يجب ترجمة محتوى العنصر أم لا.
اختبار: انقر على صورة ترجمة Google (بجوار زر البحث في أعلى الصفحة) للتغيير إلى لغة أخرى ، وانظر ماذا يحدث لكلمة "آيس كريم" أدناه:
هنا نستخدم translate = "no":ice cream.
دعم المتصفح
Attribute | |||||
---|---|---|---|---|---|
translate | Not supported | Not supported | Not supported | Not supported | Not supported |
بناء الجملة
<element translate="yes|no">
قيم السمات
Value | Description |
---|---|
yes | Specifies that the content of the element should be translated |
no | Specifies that the content of the element must not be translated |
الصفحات ذات الصلة
دروس HTML: سمات HTML