aboutsummaryrefslogtreecommitdiff
path: root/files/ar/web/html
diff options
context:
space:
mode:
authorRyan Johnson <rjohnson@mozilla.com>2021-04-29 16:16:42 -0700
committerGitHub <noreply@github.com>2021-04-29 16:16:42 -0700
commit95aca4b4d8fa62815d4bd412fff1a364f842814a (patch)
tree5e57661720fe9058d5c7db637e764800b50f9060 /files/ar/web/html
parentee3b1c87e3c8e72ca130943eed260ad642246581 (diff)
downloadtranslated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.tar.gz
translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.tar.bz2
translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.zip
remove retired locales (#699)
Diffstat (limited to 'files/ar/web/html')
-rw-r--r--files/ar/web/html/element/article/index.html154
-rw-r--r--files/ar/web/html/element/bdo/index.html109
-rw-r--r--files/ar/web/html/element/heading_elements/index.html245
-rw-r--r--files/ar/web/html/element/index.html240
-rw-r--r--files/ar/web/html/element/input/index.html1380
-rw-r--r--files/ar/web/html/element/input/radio/index.html356
-rw-r--r--files/ar/web/html/element/span/index.html123
-rw-r--r--files/ar/web/html/element/tt/index.html162
-rw-r--r--files/ar/web/html/index.html91
9 files changed, 0 insertions, 2860 deletions
diff --git a/files/ar/web/html/element/article/index.html b/files/ar/web/html/element/article/index.html
deleted file mode 100644
index ac37a279f7..0000000000
--- a/files/ar/web/html/element/article/index.html
+++ /dev/null
@@ -1,154 +0,0 @@
----
-title: عنصر المقالة <article>
-slug: Web/HTML/Element/article
-translation_of: Web/HTML/Element/article
-original_slug: HTML/Element/article
----
-<div>{{HTMLRef}}</div>
-
-<p dir="rtl">عنصر الـ &lt;article&gt; الموجود في الـ html فهو مفهوم من عنوانه والذي يعني (مقال) ونعرف جميعنا ان المقالات بنية مستقلة بذاتها. وتوجد في الوثائق, الصفحات, التطبيقات او المواقع. ما نتحدث عنه اليوم هو كيف نكتب عناصر الـ html لصفحة تحتوي على مقالات مثل : منشور المنتديات, مقالات الصفحات و المجلات. حتى منشورات المدونات blogs تعتبر مقالة. </p>
-
-<p dir="rtl">في حالة اردت ان تبرمج صفحة تختص بالمقالات لابد لك ان تقوم باستخدام تاك او عنصر &lt;article&gt;. المثال التالي يوضع استخدام المقالة بابسط صوره لها: </p>
-
-<div>{{EmbedInteractiveExample("pages/tabbed/article.html", "tabbed-standard")}}</div>
-
-<div></div>
-
-<div class="hidden" dir="rtl">مصدر هذا المثال موجود في موقع GitHub ويمكنك المشاركة من خلال نسخ المثال الموجود في الرابط ادناه <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples </a>بعدها يمكن ان ترسل لنا طلبا.</div>
-
-<p dir="rtl">يمكن لصفحة الواحدة ان تحتوي على الكثير من المقالات. وهذا المثال دليل على ذلك. ليس هذا فحسب, فيمكن ان يكون عنصر المقالة يحتوي على عناصر مقالة بداخله ( تسمى nested element اي العناصر المتداخلة ).</p>
-
-<p dir="rtl">اليك معلومات خاطفة عن هذا العنصر:</p>
-
-<table class="properties" dir="rtl">
- <tbody>
- <tr>
- <th scope="row"><a href="/en-US/docs/Web/HTML/Content_categories">فئة المكون </a></th>
- <td>
- <p><a href="/en-US/docs/Web/HTML/Content_categories#Flow_content">Flow content</a>, <a href="/en-US/docs/Web/HTML/Content_categories#Sectioning_content">sectioning content</a>, <a href="/en-US/docs/Web/HTML/Content_categories#Palpable_content">palpable content</a></p>
- </td>
- </tr>
- <tr>
- <th scope="row">Permitted content</th>
- <td><a href="/en-US/docs/HTML/Content_categories#Flow_content">Flow content</a>.</td>
- </tr>
- <tr>
- <th scope="row">Tag omission</th>
- <td>{{no_tag_omission}}</td>
- </tr>
- <tr>
- <th scope="row">Permitted parents</th>
- <td>Any element that accepts <a href="/en-US/docs/HTML/Content_categories#Flow_content">flow content</a>. Note that an <code>&lt;article&gt;</code> element must not be a descendant of an {{HTMLElement("address")}} element.</td>
- </tr>
- <tr>
- <th scope="row">Implicit ARIA role</th>
- <td><code><a href="/en-US/docs/Web/Accessibility/ARIA/Roles/Article_Role">article</a></code></td>
- </tr>
- <tr>
- <th scope="row">Permitted ARIA roles</th>
- <td>{{ARIARole("application")}}, {{ARIARole("document")}}, {{ARIARole("feed")}}, {{ARIARole("main")}}, {{ARIARole("none")}}, {{ARIARole("presentation")}}, {{ARIARole("region")}}</td>
- </tr>
- <tr>
- <th scope="row">DOM interface</th>
- <td>{{domxref("HTMLElement")}}</td>
- </tr>
- </tbody>
-</table>
-
-<h2 dir="rtl" id="الخصائص">الخصائص</h2>
-
-<p dir="rtl">هذا العنصر يحتوي على الخصائص العامة فقط.<a href="/ar/docs/docs/HTML/Global_attributes"> يمكنك زيارتها من هنا</a></p>
-
-<h2 dir="rtl" id="ملاحظات_الاستخدام">ملاحظات الاستخدام</h2>
-
-<p dir="rtl">انت حر في استخدام هذا العنصر. ولكننا نفضل ان تقوم بمراعات هذه النقاط على الاقل.</p>
-
-<ul>
- <li dir="rtl">كل عنصر &lt;article&gt; يجب ان يتم تعريفه من خلال تضمين عناوين heading باستخدام <a href="/ar/docs/Web/HTML/Element/Heading_Elements">h1-h6 </a>وتكون هذه العناصر بداخل هذا العنصر</li>
- <li dir="rtl">عندما تحاول ان تكتب عنصر &lt;article&gt; (اي عندما تحول كتابة nested element) عليك مراعاة ان يكون العنصر الداخلي متصل بالعنصر الخارجي. مثلا تعليقات المنشور يجب ان تكون article . </li>
- <li dir="rtl">معلومات مؤلف المنشور اذا امكن ان تكون في عنصر الـ &lt;address&gt; </li>
- <li dir="rtl">التواريخ الخاص بالمقالة مثل تاريخ النشر وغيرها يجب ان تكون من اختصاص العنصر <a href="/ar/docs/Web/HTML/Element/time#attr-datetime">&lt;time&gt; ويمكنك الاطلاع على هذا العنصر من هنا</a></li>
-</ul>
-
-<p dir="rtl">المثال التالي يلخص لك هذه النقاط:</p>
-
-<pre class="brush: html notranslate">&lt;article class="film_review"&gt;
-  &lt;header&gt;
-    &lt;h2&gt;Jurassic Park&lt;/h2&gt;
-  &lt;/header&gt;
-  &lt;section class="main_review"&gt;
-    &lt;p&gt;Dinos were great!&lt;/p&gt;
-  &lt;/section&gt;
-  &lt;section class="user_reviews"&gt;
-    &lt;article class="user_review"&gt;
-      &lt;p&gt;Way too scary for me.&lt;/p&gt;
-      &lt;footer&gt;
-        &lt;p&gt;
-          Posted on
- &lt;time datetime="2015-05-16 19:00"&gt;May 16&lt;/time&gt;
- by Lisa.
-        &lt;/p&gt;
-      &lt;/footer&gt;
-    &lt;/article&gt;
-    &lt;article class="user_review"&gt;
-      &lt;p&gt;I agree, dinos are my favorite.&lt;/p&gt;
-      &lt;footer&gt;
-        &lt;p&gt;
-          Posted on
- &lt;time datetime="2015-05-17 19:00"&gt;May 17&lt;/time&gt;
- by Tom.
-        &lt;/p&gt;
-      &lt;/footer&gt;
-    &lt;/article&gt;
-  &lt;/section&gt;
-  &lt;footer&gt;
-    &lt;p&gt;
-      Posted on
- &lt;time datetime="2015-05-15 19:00"&gt;May 15&lt;/time&gt;
- by Staff.
-    &lt;/p&gt;
-  &lt;/footer&gt;
-&lt;/article&gt;
-</pre>
-
-<h2 id="Specifications">Specifications</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName('HTML WHATWG', 'semantics.html#the-article-element', '&lt;article&gt;')}}</td>
- <td>{{Spec2('HTML WHATWG')}}</td>
- <td></td>
- </tr>
- <tr>
- <td>{{SpecName('HTML5.1', 'sections.html#the-article-element', '&lt;article&gt;')}}</td>
- <td>{{Spec2('HTML5.1')}}</td>
- <td></td>
- </tr>
- <tr>
- <td>{{SpecName('HTML5 W3C', 'sections.html#the-article-element', '&lt;article&gt;')}}</td>
- <td>{{Spec2('HTML5 W3C')}}</td>
- <td></td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-
-
-<p>{{Compat("html.elements.article")}}</p>
-
-<h2 dir="rtl" id="يمكنك_زيارة_التالي">يمكنك زيارة التالي:</h2>
-
-<ul>
- <li dir="rtl">العناصر المرتبطة بهذا العنصر - او ربما تستخدمها معه: {{HTMLElement("body")}}, {{HTMLElement("nav")}}, {{HTMLElement("section")}}, {{HTMLElement("aside")}}, {{HTMLElement("h1")}}, {{HTMLElement("h2")}}, {{HTMLElement("h3")}}, {{HTMLElement("h4")}}, {{HTMLElement("h5")}}, {{HTMLElement("h6")}}, {{HTMLElement("hgroup")}}, {{HTMLElement("header")}}, {{HTMLElement("footer")}}, {{HTMLElement("address")}}</li>
- <li><a href="/en-US/docs/Web/Guide/HTML/Using_HTML_sections_and_outlines">Using HTML sections and outlines</a></li>
-</ul>
diff --git a/files/ar/web/html/element/bdo/index.html b/files/ar/web/html/element/bdo/index.html
deleted file mode 100644
index 5b7dd775eb..0000000000
--- a/files/ar/web/html/element/bdo/index.html
+++ /dev/null
@@ -1,109 +0,0 @@
----
-title: '<bdo>: عنصر تجاوز النص ثنائي الاتجاه'
-slug: Web/HTML/Element/bdo
-translation_of: Web/HTML/Element/bdo
-original_slug: HTML/Element/bdo
----
-<div>{{HTMLRef}}</div>
-
-<p dir="rtl"><span class="seoSummary"><strong>HTML </strong>عنصر تجاوز النص ثنائي الاتجاه(<strong><code>&lt;bdo&gt;</code></strong>) يتجاوز الاتجاه الحالي للنص، بحيث يتم تقديم النص داخل في اتجاه مختلف. يتم رسم أحرف النص من نقطة البداية في الاتجاه المحدد. لا يتأثر اتجاه الحروف الفردية (حتى لا تحصل على أحرف إلى الوراء، على سبيل المثال).</span></p>
-
-<table class="properties">
- <tbody>
- <tr>
- <th scope="row"><a href="/en-US/docs/HTML/Content_categories">يحتوي الفئات</a></th>
- <td><a href="/en-US/docs/HTML/Content_categories#Flow_content">Flow content</a>, <a href="/en-US/docs/HTML/Content_categories#Phrasing_content">phrasing content</a>, palpable content.</td>
- </tr>
- <tr>
- <th scope="row">المحتوى المسموح به</th>
- <td><a href="/en-US/docs/HTML/Content_categories#Phrasing_content">Phrasing content</a>.</td>
- </tr>
- <tr>
- <th scope="row">وسم الإقفال</th>
- <td>{{no_tag_omission}}</td>
- </tr>
- <tr>
- <th scope="row">يسمح الآباء</th>
- <td>أي عنصر يقبل  <a href="/en-US/docs/HTML/Content_categories#Phrasing_content">صياغة المحتوى.</a></td>
- </tr>
- <tr>
- <th scope="row">قواعد ARIA مسموح</th>
- <td>الكل</td>
- </tr>
- <tr>
- <th scope="row">DOM واجهة</th>
- <td>{{domxref("HTMLElement")}} Up to Gecko 1.9.2 (Firefox 4) inclusive, Firefox implements the <code><a href="/en-US/docs/Web/API/HTMLSpanElement">HTMLSpanElement</a></code> interface for this element.</td>
- </tr>
- </tbody>
-</table>
-
-<h2 dir="rtl" id="السِمات">السِمات</h2>
-
-<p dir="rtl">تتضمن سمات هذه العناصر  <a href="/en-US/docs/HTML/Global_attributes">السمات العامة.</a></p>
-
-<dl>
- <dt dir="rtl">{{htmlattrdef("dir")}}</dt>
- <dd dir="rtl">الاتجاه الذي يجب أن يظهر فيه النص في محتويات هذا العنصر.</dd>
- <dd dir="rtl">القيم المحتملة هي:</dd>
- <dd>
- <ul>
- <li dir="rtl"><code>ltr</code>: يشير إلى أن النص يجب أن يسير في الاتجاه من اليسار إلى اليمين.</li>
- <li dir="rtl"><code>rtl</code>:يشير إلى أن النص يجب أن يكون في الاتجاه من اليمين إلى اليسار.</li>
- </ul>
- </dd>
-</dl>
-
-<h2 dir="rtl" id="الأمثلة">الأمثلة</h2>
-
-<pre class="brush: html">&lt;!-- Switch text direction --&gt;
-&lt;p&gt;This text will go left to right.&lt;/p&gt;
-&lt;p&gt;&lt;bdo dir="rtl"&gt;This text will go right
-to left.&lt;/bdo&gt;&lt;/p&gt;
-</pre>
-
-<h3 id="النتيجة">النتيجة</h3>
-
-<p> </p>
-
-<p>{{EmbedLiveSample('Examples')}}</p>
-
-<p> </p>
-
-<h2 dir="rtl" id="ملاحظات">ملاحظات</h2>
-
-<p dir="rtl">مواصفات HTML 4 لم تحدد أحداث لهذا العنصر؛ تمت إضافتها في XHTML. وهذا على الأرجح سهو.</p>
-
-<h2 dir="rtl" id="مميزات">مميزات</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">المميزات</th>
- <th scope="col">الحالة</th>
- <th scope="col">تعليق</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName('HTML WHATWG', 'semantics.html#the-bdo-element', '&lt;bdo&gt;')}}</td>
- <td>{{Spec2('HTML WHATWG')}}</td>
- <td> </td>
- </tr>
- <tr>
- <td>{{SpecName('HTML5 W3C', 'textlevel-semantics.html#the-bdo-element', '&lt;bdo&gt;')}}</td>
- <td>{{Spec2('HTML5 W3C')}}</td>
- <td> </td>
- </tr>
- <tr>
- <td>{{SpecName('HTML4.01', 'dirlang.html#h-8.2.4', '&lt;bdo&gt;')}}</td>
- <td>{{Spec2('HTML4.01')}}</td>
- <td> </td>
- </tr>
- </tbody>
-</table>
-
-<h2 dir="rtl" id="التكامل(دعم)_مع_المتصفح">التكامل(دعم) مع المتصفح</h2>
-
-
-
-<p>{{Compat("html.elements.bdo")}}</p>
diff --git a/files/ar/web/html/element/heading_elements/index.html b/files/ar/web/html/element/heading_elements/index.html
deleted file mode 100644
index 4770490bd3..0000000000
--- a/files/ar/web/html/element/heading_elements/index.html
+++ /dev/null
@@ -1,245 +0,0 @@
----
-title: '<h1>–<h6>: عناصر العناوين'
-slug: Web/HTML/Element/Heading_Elements
-translation_of: Web/HTML/Element/Heading_Elements
-original_slug: HTML/Element/headings_elements
----
-<p dir="rtl"> عناصر <span class="seoSummary"><strong><code>&lt;h1&gt;</code>–<code>&lt;h6&gt;</code></strong></span> تقدم لنا سته مستويات من عناوين الأقسام. حيث أن العنصر<span class="seoSummary"><code>&lt;h1&gt;</code> يمثل العنوان الأعلى مستوى في الأهمية بينما العنصر <code>&lt;h2&gt;</code> هو الأقل.</span></p>
-
-<table class="properties">
- <tbody>
- <tr>
- <th scope="row"><a href="/en-US/docs/Web/HTML/Content_categories">فئات المحتوى </a></th>
- <td><a href="/en-US/docs/Web/HTML/Content_categories#Flow_content">Flow content</a>, heading content, palpable content.</td>
- </tr>
- <tr>
- <th scope="row">المحتوى المسموح به</th>
- <td><a href="/en-US/docs/Web/HTML/Content_categories#Phrasing_content">Phrasing content</a>.</td>
- </tr>
- <tr>
- <th scope="row">إغفال الوسوم</th>
- <td>لا شئ، كلاً من وسمّي الفتح والإقفال إجباري</td>
- </tr>
- <tr>
- <th scope="row">الأباء المسموح بهم للعنصر</th>
- <td>Any element that accepts <a href="/en-US/docs/Web/HTML/Content_categories#Flow_content">flow content</a>; don't use an heading element as a child of the {{HTMLElement("hgroup")}} element — it is now deprecated.</td>
- </tr>
- <tr>
- <th scope="row">Permitted ARIA roles</th>
- <td>{{ARIARole("tab")}}, {{ARIARole("presentation")}}</td>
- </tr>
- <tr>
- <th scope="row">DOM interface</th>
- <td>{{domxref("HTMLHeadingElement")}}</td>
- </tr>
- </tbody>
-</table>
-
-<h2 dir="rtl" id="السمات">السمات</h2>
-
-<p dir="rtl">هذه العناصر تتضمن <a href="/en-US/docs/Web/HTML/Global_attributes">السمات العامة</a>.</p>
-
-<div class="note" dir="rtl">
-<p>السمة <code>align</code> عفاء عنها الزمن، لا تستخدمها</p>
-</div>
-
-<h2 id="ملاحظات_الإستخدام" style="direction: rtl;">ملاحظات الإستخدام</h2>
-
-<ul>
- <li dir="rtl">يمكن إستخدام معلومات العناوين من قبل الـ user agents, على سبيل المثال لإنشاء جدول المحتويات لمستند بشكل تلقائي.</li>
- <li dir="rtl">لا تستخدم عناوين بمستويات منخفضة لتقليل حجم خط العناوين: إستخدم خاصية لغة CSS المسؤولة عن التحكم بأحجام الخطوط <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/font-size">font-size</a> بدلاً من ذلك.</li>
- <li dir="rtl"> تجنب تخطي مستويات العناوين: دائماً إبدا من <code>&lt;h1&gt;</code>، من ثم إستخدم <code>&lt;h2&gt;</code> وهكذا.</li>
- <li dir="rtl">يجب أن تأخذ بعين الإعتبار تجنب إستخدام العنصر &lt;h1&gt; أكثر من مرة في الصفحة. إطلع على <a href="https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Using_HTML_sections_and_outlines#Defining_sections">تعريف الأقسام</a> في <a href="https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Using_HTML_sections_and_outlines">إستخدام الأقسام و وتسلسل العناوين في الـ HTML</a> لمعلومات أكثر.</li>
-</ul>
-
-<h2 id="أمثلة" style="direction: rtl;">أمثلة</h2>
-
-<h3 id="جميع_العناوين" style="direction: rtl;">جميع العناوين</h3>
-
-<p style="direction: rtl;">الكود التالي يظهر كل مستويات العناوين، قيد الإستخدام.</p>
-
-<pre class="brush: html">&lt;h1&gt;Heading level 1&lt;/h1&gt;
-&lt;h2&gt;Heading level 2&lt;/h2&gt;
-&lt;h3&gt;Heading level 3&lt;/h3&gt;
-&lt;h4&gt;Heading level 4&lt;/h4&gt;
-&lt;h5&gt;Heading level 5&lt;/h5&gt;
-&lt;h6&gt;Heading level 6&lt;/h6&gt;
-</pre>
-
-<p style="direction: rtl;">هنا نتيجة هذا الكود:</p>
-
-<p>{{ EmbedLiveSample('All_headings', '280', '300', '') }}</p>
-
-<h3 id="مثال_لصفحة" style="direction: rtl;">مثال لصفحة</h3>
-
-<p style="direction: rtl;">الكود التالي يظهر بعض العناوين مع بعض المحتوى بأسفلها.</p>
-
-<pre class="brush: html">&lt;h1&gt;Heading elements&lt;/h1&gt;
-&lt;h2&gt;Summary&lt;/h2&gt;
-&lt;p&gt;Some text here...&lt;/p&gt;
-
-&lt;h2&gt;Examples&lt;/h2&gt;
-&lt;h3&gt;Example 1&lt;/h3&gt;
-&lt;p&gt;Some text here...&lt;/p&gt;
-
-&lt;h3&gt;Example 2&lt;/h3&gt;
-&lt;p&gt;Some text here...&lt;/p&gt;
-
-&lt;h2&gt;See also&lt;/h2&gt;
-&lt;p&gt;Some text here...&lt;/p&gt;
-</pre>
-
-<p style="direction: rtl;">هنا نتيجة هذا الكود:</p>
-
-<p>{{ EmbedLiveSample('Example_page', '280', '480', '') }}</p>
-
-<h2 id="سهولة_الوصول" style="direction: rtl;">سهولة الوصول</h2>
-
-<h3 id="التنقل_بين_الأجزاء_والصفحات" style="direction: rtl;">التنقل بين الأجزاء والصفحات</h3>
-
-<p style="direction: rtl;">من الأساليب الشائعة للتنقل بين أجزاء الصفحة من قبل مستخدمي قارئات الشاشات هو القفز من عنوان لأخر لتحديد محتوى الصفحة بشكل سريع. </p>
-
-<p style="direction: rtl;">لهذا السبب، من المهم عدم تخطي أحد مستويات العناوين فالقيام بذلك قد يسبب ارتباك للشخص الذي يقوم بالتنقل بين أجزاء الموقع بهذه الطريقة وربما يترك لدية نوع من الحيرة عن أين هو العنوان المفقود.</p>
-
-<h4 id="لا_تقم_بالتالي" style="direction: rtl;">لا تقم بالتالي:</h4>
-
-<pre class="brush: html example-bad">&lt;h1&gt;Heading level 1&lt;/h1&gt;
-&lt;h3&gt;Heading level 3&lt;/h3&gt;
-&lt;h4&gt;Heading level 4&lt;/h4&gt;
-</pre>
-
-<h4 id="قم_بالتالي" style="direction: rtl;">قم بالتالي:</h4>
-
-<pre class="brush: html example-good">&lt;h1&gt;Heading level 1&lt;/h1&gt;
-&lt;h2&gt;Heading level 2&lt;/h2&gt;
-&lt;h3&gt;Heading level 3&lt;/h3&gt;
-</pre>
-
-<h4 id="تسلسل_العناوين_-_Nesting" style="direction: rtl;">تسلسل العناوين -  Nesting</h4>
-
-<p style="direction: rtl;">قد يتم عمل تسلسل لبعض العناوين لتبدو كعناوين أقسام فرعية لعكس تنظيم محتوى الصفحة. أغلب قارئات الشاشات تستطيع أيضا تكوين قائمة مرتبة لكل العناوين التي في الصفحة، ما قد يساعد الشخص لتحديد التسلسل الهرمي للمحتوى بسرعة :</p>
-
-<ol>
- <li><code>h1</code> Beetles
-
- <ol>
- <li><code>h2</code> Etymology</li>
- <li><code>h2</code> Distribution and Diversity</li>
- <li><code>h2</code> Evolution
- <ol>
- <li><code>h3</code> Late Paleozoic</li>
- <li><code>h3</code> Jurassic</li>
- <li><code>h3</code> Cretaceous</li>
- <li><code>h3</code> Cenozoic</li>
- </ol>
- </li>
- <li><code>h2</code> External Morphology
- <ol>
- <li><code>h3</code> Head
- <ol>
- <li><code>h4</code> Mouthparts</li>
- </ol>
- </li>
- <li><code>h3</code> Thorax
- <ol>
- <li><code>h4</code> Prothorax</li>
- <li><code>h4</code> Pterothorax</li>
- </ol>
- </li>
- <li><code>h3</code> Legs</li>
- <li><code>h3</code> Wings</li>
- <li><code>h3</code> Abdomen</li>
- </ol>
- </li>
- </ol>
- </li>
-</ol>
-
-<p>When headings are nested, heading levels may be "skipped" when closing a subsection.</p>
-
-<ul>
- <li><a href="https://www.w3.org/WAI/tutorials/page-structure/headings/">Headings • Page Structure • WAI Web Accessibility Tutorials</a></li>
- <li><a href="/en-US/docs/Web/Accessibility/Understanding_WCAG/Perceivable#Guideline_1.3_—_Create_content_that_can_be_presented_in_different_ways">MDN Understanding WCAG, Guideline 1.3 explanations</a></li>
- <li><a href="https://www.w3.org/TR/UNDERSTANDING-WCAG20/content-structure-separation-programmatic.html">Understanding Success Criterion 1.3.1 | W3C Understanding WCAG 2.0</a></li>
- <li><a href="/en-US/docs/Web/Accessibility/Understanding_WCAG/Operable#Guideline_2.4_—_Navigable_Provide_ways_to_help_users_navigate_find_content_and_determine_where_they_are">MDN Understanding WCAG, Guideline 2.4 explanations</a></li>
- <li><a href="https://www.w3.org/TR/UNDERSTANDING-WCAG20/navigation-mechanisms-skip.html">Understanding Success Criterion 2.4.1 | W3C Understanding WCAG 2.0</a></li>
- <li><a href="https://www.w3.org/TR/UNDERSTANDING-WCAG20/navigation-mechanisms-descriptive.html">Understanding Success Criterion 2.4.6 | W3C Understanding WCAG 2.0</a></li>
- <li><a href="https://www.w3.org/TR/UNDERSTANDING-WCAG20/navigation-mechanisms-headings.html">Understanding Success Criterion 2.4.10 | W3C Understanding WCAG 2.0</a></li>
-</ul>
-
-<h3 id="Labeling_section_content">Labeling section content</h3>
-
-<p>Another common navigation technique for users of screen reading software is to generate a list of <a href="/en-US/docs/Web/HTML/Element#Content_sectioning">sectioning content</a> and use it to determine the page's layout.</p>
-
-<p>Sectioning content can be labeled using a combination of the <code><a href="/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-labelledby_attribute">aria-labelledby</a></code> and {{htmlattrxref("id")}} attributes, with the label concisely describing the purpose of the section. This technique is useful for situations where there is more than one sectioning element on the same page.</p>
-
-<h4 id="Example">Example</h4>
-
-<pre class="brush: html">&lt;header&gt;
- &lt;nav aria-labelledby="primary-navigation"&gt;
- &lt;h2 id="primary-navigation"&gt;Primary navigation&lt;/h2&gt;
- &lt;!-- navigation items --&gt;
- &lt;/nav&gt;
-&lt;/header&gt;
-
-&lt;!-- page content --&gt;
-
-&lt;footer&gt;
- &lt;nav aria-labelledby="footer-navigation"&gt;
- &lt;h2 id="footer-navigation"&gt;Footer navigation&lt;/h2&gt;
- &lt;!-- navigation items --&gt;
- &lt;/nav&gt;
-&lt;/footer&gt;
-</pre>
-
-<p>In this example, screen reading technology would announce that there are two {{HTMLElement("nav")}} sections, one called "Primary navigation" and one called "Footer navigation". If labels were not provided, the person using screen reading software may have to investigate each <code>nav</code> element's contents to determine their purpose.</p>
-
-<ul>
- <li><a href="/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-labelledby_attribute">Using the aria-labelledby attribute</a></li>
- <li><a href="https://www.w3.org/WAI/tutorials/page-structure/labels/#using-aria-labelledby">Labeling Regions • Page Structure • W3C WAI Web Accessibility Tutorials</a></li>
-</ul>
-
-<h2 id="Specifications">Specifications</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName('HTML WHATWG', 'sections.html#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements', '&lt;h1&gt;, &lt;h2&gt;, &lt;h3&gt;, &lt;h4&gt;, &lt;h5&gt;, and &lt;h6&gt;')}}</td>
- <td>{{Spec2('HTML WHATWG')}}</td>
- <td> </td>
- </tr>
- <tr>
- <td>{{SpecName('HTML5 W3C', 'sections.html#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements', '&lt;h1&gt;, &lt;h2&gt;, &lt;h3&gt;, &lt;h4&gt;, &lt;h5&gt;, and &lt;h6&gt;')}}</td>
- <td>{{Spec2('HTML5 W3C')}}</td>
- <td> </td>
- </tr>
- <tr>
- <td>{{SpecName('HTML4.01', 'struct/global.html#h-7.5.5', '&lt;h1&gt;, &lt;h2&gt;, &lt;h3&gt;, &lt;h4&gt;, &lt;h5&gt;, and &lt;h6&gt;')}}</td>
- <td>{{Spec2('HTML4.01')}}</td>
- <td> </td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-
-
-<p>{{Compat("html.elements.h1")}}</p>
-
-<h2 id="See_also">See also</h2>
-
-<ul>
- <li>{{HTMLElement("p")}}</li>
- <li>{{HTMLElement("div")}}</li>
- <li>{{HTMLElement("section")}}</li>
-</ul>
-
-<div>{{HTMLRef}}</div>
diff --git a/files/ar/web/html/element/index.html b/files/ar/web/html/element/index.html
deleted file mode 100644
index 753d271820..0000000000
--- a/files/ar/web/html/element/index.html
+++ /dev/null
@@ -1,240 +0,0 @@
----
-title: HTML element reference
-slug: Web/HTML/Element
-translation_of: Web/HTML/Element
-original_slug: HTML/Element
----
-<p><font><font>يسرد مرجع HTML هذا جميع </font></font><strong><font><font>عناصر HTML</font></font></strong><font><font> ، المحددة في HTML5 أو في مواصفات سابقة. </font><font>عند تضمينها داخل أقواس زاوية ، فإنها تشكل </font></font><em><font><font>علامات HTML</font></font></em><font><font> : </font></font><code>&lt;elementname&gt;.</code><font><font>العناصر عبارة عن كيانات تحدد كيفية إنشاء مستندات HTML ، ونوع المحتوى الذي يجب وضعه في أي جزء من </font><font>مستند </font></font><a href="https://developer.mozilla.org/en-US/docs/HTML" title="/ EN-US / مستندات / HTML"><font><font>HTML</font></font></a><font><font> .</font></font></p>
-
-<p><font><font>تسرد هذه الصفحة جميع علامات HTML5 القياسية ، ولكنها تحتوي أيضًا على العلامات القديمة والبالية والمهملة ، بالإضافة إلى العلامات غير القياسية التي قد تدعمها المتصفحات. </font><font>غالبًا ما يشار إلى </font><font>العناصر التي تم تقديمها في </font></font><a href="https://developer.mozilla.org/en-US/docs/HTML/HTML5" title="/ EN-US / مستندات / HTML / HTML5"><font><font>HTML5</font></font></a><font><font> على أنها عناصر HTML5 الجديدة ، على الرغم من أن العناصر القياسية الأخرى صالحة أيضًا في HTML5.</font></font></p>
-
-<p><font><font>في مستند HTML ، يتم تعريف عنصر بواسطة </font></font><em><font><font>علامة البداية</font></font></em><font><font> . </font><font>إذا احتوى عنصر المحتويات الأخرى، وينتهي مع </font></font><em><font><font>علامة إغلاق</font></font></em><font><font>، حيث يسبق اسم العنصر بواسطة خط مائل: </font></font><code>&lt;/elementname&gt;</code><font><font>. </font><font>لا تحتاج إلى إغلاق بعض العناصر ، مثل عناصر الصورة.</font><font>هذه هي المعروفة باسم </font><font>العناصر </font></font><em><font><font>باطلة</font></font></em><font><font> . </font><font>تحتوي مستندات HTML على شجرة من هذه العناصر. </font><font>يدعى كل لتمثيل ما يفعله. </font><font>على سبيل المثال ، </font></font><code>&lt;title&gt;</code><font><font>يمثل العنصر عنوان المستند. </font><font>فيما يلي قائمة أبجدية بعناصر HTML.</font></font></p>
-
-<p><a href="https://developer.mozilla.org/en-US/docs/HTML/HTML5"><img alt="تمت إضافة هذا العنصر في HTML5" src="https://developer.mozilla.org/files/3843/HTML5_Badge_32.png" title="تمت إضافة هذا العنصر في HTML5"></a><font><font>يشير </font><font>الرمز </font><font>إلى أنه تمت إضافة العنصر في HTML5. </font><font>لاحظ أنه ربما تم تعديل أو توسيع العناصر الأخرى المدرجة هنا حسب مواصفات HTML5. </font><font>العناصر البعدية غير قياسية أو قديمة أو متوقفة ؛ </font><font>يجب عدم استخدامها في مواقع ويب جديدة ، ويجب إزالتها بشكل تدريجي من المواقع الحالية لتجنب النتائج غير المرغوب فيها.</font></font></p>
-
-<p>يشير الرمز Ⓒ إلى أن العنصر معرف في مجموعة المواصفات Web Components.</p>
-
-<div class="index widgeted"><span id="A">A</span>
-
-<ul>
- <li>{{ HTMLElement("a") }}</li>
- <li>{{ HTMLElement("abbr") }}</li>
- <li><s class="obsoleteElement">{{ HTMLElement("acronym") }}</s></li>
- <li>{{ HTMLElement("address") }}</li>
- <li><s class="deprecatedElement obsoleteElement">{{ HTMLElement("applet") }}</s></li>
- <li>{{ HTMLElement("area") }}</li>
- <li class="html5">{{ HTMLElement("article") }}</li>
- <li class="html5">{{ HTMLElement("aside") }}</li>
- <li class="html5">{{ HTMLElement("audio") }}</li>
-</ul>
-<span id="B">B</span>
-
-<ul>
- <li>{{ HTMLElement("b") }}</li>
- <li>{{ HTMLElement("base") }}</li>
- <li><s class="deprecatedElement obsoleteElement">{{ HTMLElement("basefont") }}</s></li>
- <li class="html5">{{ HTMLElement("bdi") }}</li>
- <li>{{ HTMLElement("bdo") }}</li>
- <li><s class="nonStdElement">{{ HTMLElement("bgsound") }}</s></li>
- <li><s class="obsoleteElement">{{ HTMLElement("big") }}</s></li>
- <li><s class="nonStdElement">{{ HTMLElement("blink") }}</s></li>
- <li>{{ HTMLElement("blockquote") }}</li>
- <li>{{ HTMLElement("body") }}</li>
- <li>{{ HTMLElement("br") }}</li>
- <li>{{ HTMLElement("button") }}</li>
-</ul>
-<span id="C">C</span>
-
-<ul>
- <li class="html5">{{ HTMLElement("canvas") }}</li>
- <li>{{ HTMLElement("caption") }}</li>
- <li><s class="deprecatedElement obsoleteElement">{{ HTMLElement("center") }}</s></li>
- <li>{{ HTMLElement("cite") }}</li>
- <li>{{ HTMLElement("code") }}</li>
- <li>{{ HTMLElement("col") }}</li>
- <li>{{ HTMLElement("colgroup") }}</li>
-</ul>
-<span id="D">D</span>
-
-<ul>
- <li class="html5">{{ HTMLElement("data") }}</li>
- <li class="html5">{{ HTMLElement("datalist") }}</li>
- <li>{{ HTMLElement("dd") }}</li>
- <li class="webcomp">{{ HTMLElement("decorator")}}</li>
- <li>{{ HTMLElement("del") }}</li>
- <li class="html5">{{ HTMLElement("details") }}</li>
- <li>{{ HTMLElement("dfn") }}</li>
- <li><s class="deprecatedElement obsoleteElement">{{ HTMLElement("dir") }}</s></li>
- <li>{{ HTMLElement("div") }}</li>
- <li>{{ HTMLElement("dl") }}</li>
- <li>{{ HTMLElement("dt") }}</li>
-</ul>
-<span id="E">E</span>
-
-<ul>
- <li>{{HTMLElement("em") }}</li>
- <li class="html5">{{ HTMLElement("embed") }}</li>
-</ul>
-<span id="F">F</span>
-
-<ul>
- <li>{{ HTMLElement("fieldset") }}</li>
- <li class="html5">{{ HTMLElement("figcaption") }}</li>
- <li class="html5">{{ HTMLElement("figure") }}</li>
- <li><s class="deprecatedElement obsoleteElement">{{ HTMLElement("font") }}</s></li>
- <li class="html5">{{ HTMLElement("footer") }}</li>
- <li>{{ HTMLElement("form") }}</li>
- <li><s class="obsoleteElement">{{ HTMLElement("frame") }}</s></li>
- <li><s class="obsoleteElement">{{ HTMLElement("frameset") }}</s></li>
-</ul>
-<span id="G">G H</span>
-
-<ul>
- <li>{{ HTMLElement("h1") }}</li>
- <li>{{ HTMLElement("h2") }}</li>
- <li>{{ HTMLElement("h3") }}</li>
- <li>{{ HTMLElement("h4") }}</li>
- <li>{{ HTMLElement("h5") }}</li>
- <li>{{ HTMLElement("h6") }}</li>
- <li>{{ HTMLElement("head") }}</li>
- <li class="html5">{{ HTMLElement("header") }}</li>
- <li class="html5"><s class="deprecatedElement obsoleteElement">{{ HTMLElement("hgroup") }}</s></li>
- <li>{{ HTMLElement("hr") }}</li>
- <li>{{ HTMLElement("html") }}</li>
-</ul>
-<span id="I">I</span>
-
-<ul>
- <li>{{ HTMLElement("i") }}</li>
- <li>{{ HTMLElement("iframe") }}</li>
- <li>{{ HTMLElement("img") }}</li>
- <li>{{ HTMLElement("input") }}</li>
- <li>{{ HTMLElement("ins") }}</li>
- <li><s class="deprecatedElement obsoleteElement">{{ HTMLElement("isindex") }}</s></li>
-</ul>
-<span id="J">J K</span>
-
-<ul>
- <li>{{ HTMLElement("kbd") }}</li>
- <li class="html5">{{ HTMLElement("keygen") }}</li>
-</ul>
-<span id="L">L</span>
-
-<ul>
- <li>{{ HTMLElement("label") }}</li>
- <li>{{ HTMLElement("legend") }}</li>
- <li>{{ HTMLElement("li") }}</li>
- <li>{{ HTMLElement("link") }}</li>
- <li><s class="deprecatedElement obsoleteElement">{{ HTMLElement("listing") }}</s></li>
-</ul>
-<span id="M">M</span>
-
-<ul>
- <li class="html5">{{HTMLElement("main")}}</li>
- <li>{{ HTMLElement("map") }}</li>
- <li class="html5">{{ HTMLElement("mark") }}</li>
- <li><s class="nonStdElement">{{ HTMLElement("marquee") }}</s></li>
- <li class="html5">{{ HTMLElement("menu") }}</li>
- <li class="html5">{{ HTMLElement("menuitem") }}</li>
- <li>{{ HTMLElement("meta") }}</li>
- <li class="html5">{{ HTMLElement("meter") }}</li>
-</ul>
-<span id="N">N</span>
-
-<ul>
- <li class="html5">{{ HTMLElement("nav") }}</li>
- <li><s class="nonStdElement">{{ HTMLElement("nobr") }}</s></li>
- <li><s class="deprecatedElement obsoleteElement">{{ HTMLElement("noframes") }}</s></li>
- <li>{{ HTMLElement("noscript") }}</li>
-</ul>
-<span id="O">O</span>
-
-<ul>
- <li>{{ HTMLElement("object") }}</li>
- <li>{{ HTMLElement("ol") }}</li>
- <li>{{ HTMLElement("optgroup") }}</li>
- <li>{{ HTMLElement("option") }}</li>
- <li class="html5">{{ HTMLElement("output") }}</li>
-</ul>
-<span id="P">P</span>
-
-<ul>
- <li>{{ HTMLElement("p") }}</li>
- <li>{{ HTMLElement("param") }}</li>
- <li><s class="deprecatedElement obsoleteElement">{{ HTMLElement("plaintext") }}</s></li>
- <li>{{ HTMLElement("pre") }}</li>
- <li class="html5">{{ HTMLElement("progress") }}</li>
-</ul>
-<span id="Q">Q</span>
-
-<ul>
- <li>{{ HTMLElement("q") }}</li>
-</ul>
-<span id="R">R</span>
-
-<ul>
- <li class="html5">{{ HTMLElement("rp") }}</li>
- <li class="html5">{{ HTMLElement("rt") }}</li>
- <li class="html5">{{ HTMLElement("ruby") }}</li>
-</ul>
-<span id="S">S</span>
-
-<ul>
- <li>{{ HTMLElement("s") }}</li>
- <li>{{ HTMLElement("samp") }}</li>
- <li>{{ HTMLElement("script") }}</li>
- <li class="html5">{{ HTMLElement("section") }}</li>
- <li>{{ HTMLElement("select") }}</li>
- <li>{{ HTMLElement("small") }}</li>
- <li class="html5">{{ HTMLElement("source") }}</li>
- <li><s class="nonStdElement">{{ HTMLElement("spacer") }}</s></li>
- <li>{{ HTMLElement("span") }}</li>
- <li><s class="deprecatedElement obsoleteElement">{{ HTMLElement("strike") }}</s></li>
- <li>{{ HTMLElement("strong") }}</li>
- <li>{{ HTMLElement("style") }}</li>
- <li>{{ HTMLElement("sub") }}</li>
- <li class="html5">{{ HTMLElement("summary") }}</li>
- <li>{{ HTMLElement("sup") }}</li>
-</ul>
-<span id="T">T</span>
-
-<ul>
- <li>{{ HTMLElement("table") }}</li>
- <li>{{ HTMLElement("tbody") }}</li>
- <li>{{ HTMLElement("td") }}</li>
- <li class="webcomp">{{ HTMLElement("template")}}</li>
- <li>{{ HTMLElement("textarea") }}</li>
- <li>{{ HTMLElement("tfoot") }}</li>
- <li>{{ HTMLElement("th") }}</li>
- <li>{{ HTMLElement("thead") }}</li>
- <li class="html5">{{ HTMLElement("time") }}</li>
- <li>{{ HTMLElement("title") }}</li>
- <li>{{ HTMLElement("tr") }}</li>
- <li class="html5">{{ HTMLElement("track") }}</li>
- <li><s class="obsoleteElement">{{ HTMLElement("tt") }}</s></li>
-</ul>
-<span id="U">U</span>
-
-<ul>
- <li>{{ HTMLElement("u") }}</li>
- <li>{{ HTMLElement("ul") }}</li>
-</ul>
-<span id="V">V</span>
-
-<ul>
- <li>{{ HTMLElement("var") }}</li>
- <li class="html5">{{ HTMLElement("video") }}</li>
-</ul>
-<span id="W">W</span>
-
-<ul>
- <li class="html5">{{ HTMLElement("wbr") }}</li>
-</ul>
-<span id="X">X Y Z </span>
-
-<ul>
- <li><span id="X"><s class="deprecatedElement obsoleteElement">{{ HTMLElement("xmp") }}</s></span></li>
-</ul>
-</div>
-
-<p> </p>
diff --git a/files/ar/web/html/element/input/index.html b/files/ar/web/html/element/input/index.html
deleted file mode 100644
index 4d6726e1bf..0000000000
--- a/files/ar/web/html/element/input/index.html
+++ /dev/null
@@ -1,1380 +0,0 @@
----
-title: '<input>: The Input (Form Input) element'
-slug: Web/HTML/Element/input
-tags:
- - Data entry
- - Element
- - Forms
- - HTML
- - HTML forms
- - HTML input tag
- - Input
- - MakeBrowserAgnostic
- - NeedsTranslation
- - Reference
- - TopicStub
- - Web
-translation_of: Web/HTML/Element/input
----
-<div>{{HTMLRef}}</div>
-
-<p><span class="seoSummary">The <strong>HTML <code>&lt;input&gt;</code> element</strong> is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and {{Glossary("user agent")}}. </span>The <code>&lt;input&gt;</code> element is one of the most powerful and complex in all of HTML due to the sheer number of combinations of input types and attributes.</p>
-
-<div>{{EmbedInteractiveExample("pages/tabbed/input-text.html", "tabbed-shorter")}}</div>
-
-<div class="hidden">The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</div>
-
-<h2 id="&lt;input>_types">&lt;input&gt; types</h2>
-
-<p>How an <code>&lt;input&gt;</code> works varies considerably depending on the value of its {{htmlattrxref("type", "input")}} attribute, hence the different types are covered in their own separate reference pages. If this attribute is not specified, the default type adopted is <code>text</code>.</p>
-
-<p>The available types are as follows:</p>
-
-<table class="standard-table">
- <colgroup>
- <col>
- <col style="width: 50%;">
- <col>
- </colgroup>
- <thead>
- <tr>
- <th>Type</th>
- <th>Description</th>
- <th>Basic Examples</th>
- <th>Spec</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{HTMLElement("input/button", "button")}}</td>
- <td>A push button with no default behavior displaying the value of the {{anch('htmlattrdefvalue', 'value')}} attribute, empty by default.</td>
- <td id="examplebutton">
- <pre class="brush: html hidden notranslate">
-&lt;input type="button" name="button" /&gt;</pre>
- {{EmbedLiveSample("examplebutton",200,55,"","", "nobutton")}}</td>
- <td></td>
- </tr>
- <tr>
- <td>{{HTMLElement("input/checkbox", "checkbox")}}</td>
- <td>A check box allowing single values to be selected/deselected.</td>
- <td id="examplecheckbox">
- <pre class="brush: html hidden notranslate">
-&lt;input type="checkbox" name="checkbox"/&gt;</pre>
- {{EmbedLiveSample("examplecheckbox",200,55,"","", "nobutton")}}</td>
- <td></td>
- </tr>
- <tr>
- <td>{{HTMLElement("input/color", "color")}}</td>
- <td>A control for specifying a color; opening a color picker when active in supporting browsers.</td>
- <td id="examplecolor">
- <pre class="brush: html hidden notranslate">
-&lt;input type="color" name="color"/&gt;</pre>
- {{EmbedLiveSample("examplecolor",200,55,"","", "nobutton")}}</td>
- <td>{{HTMLVersionInline("5")}}</td>
- </tr>
- <tr>
- <td>{{HTMLElement("input/date", "date")}}</td>
- <td>A control for entering a date (year, month, and day, with no time). Opens a date picker or numeric wheels for year, month, day when active in supporting browsers.</td>
- <td id="exampledate">
- <pre class="brush: html hidden notranslate">
-&lt;input type="date" name="date"/&gt;</pre>
- {{EmbedLiveSample("exampledate",200,55,"","", "nobutton")}}</td>
- <td>{{HTMLVersionInline("5")}}</td>
- </tr>
- <tr>
- <td>{{HTMLElement("input/datetime-local", "datetime-local")}}</td>
- <td>A control for entering a date and time, with no time zone. Opens a date picker or numeric wheels for date- and time-components when active in supporting browsers.</td>
- <td id="exampledtl">
- <pre class="brush: html hidden notranslate">
-&lt;input type="datetime-local" name="datetime-local"/&gt;</pre>
- {{EmbedLiveSample("exampledtl",200,55,"","", "nobutton")}}</td>
- <td>{{HTMLVersionInline("5")}}</td>
- </tr>
- <tr>
- <td>{{HTMLElement("input/email", "email")}}</td>
- <td>A field for editing an email address. Looks like a <code>text</code> input, but has validation parameters and relevant keyboard in supporting browsers and devices with dynamic keyboards.</td>
- <td id="exampleemail">
- <pre class="brush: html hidden notranslate">
-&lt;input type="email" name="email"/&gt;</pre>
- {{EmbedLiveSample("exampleemail",200,55,"","", "nobutton")}}</td>
- <td>{{HTMLVersionInline("5")}}</td>
- </tr>
- <tr>
- <td>{{HTMLElement("input/file", "file")}}</td>
- <td>A control that lets the user select a file. Use the {{anch('htmlattrdefaccept', 'accept')}} attribute to define the types of files that the control can select.</td>
- <td id="examplefile">
- <pre class="brush: html hidden notranslate">
-&lt;input type="file" accept="image/*, text/*" name="file"/&gt;</pre>
- {{EmbedLiveSample("examplefile",'100%',55,"","", "nobutton")}}</td>
- <td></td>
- </tr>
- <tr>
- <td>{{HTMLElement("input/hidden", "hidden")}}</td>
- <td>A control that is not displayed but whose value is submitted to the server. There is an example in the next column, but it's hidden!</td>
- <td></td>
- <td></td>
- </tr>
- <tr>
- <td>{{HTMLElement("input/image", "image")}}</td>
- <td>A graphical <code>submit</code> button. Displays an image defined by the <code>src</code> attribute. The {{anch('htmlattrdefalt', 'alt')}} attribute displays if the image {{anch('htmlattrdefsrc', 'src')}} is missing.</td>
- <td id="exampleimage">
- <pre class="brush: html hidden notranslate">
-&lt;input type="image" name="image" src="" alt="image input"/&gt;</pre>
- {{EmbedLiveSample("exampleimage",200,55,"","", "nobutton")}}</td>
- <td></td>
- </tr>
- <tr>
- <td>{{HTMLElement("input/month", "month")}}</td>
- <td>A control for entering a month and year, with no time zone.</td>
- <td id="examplemonth">
- <pre class="brush: html hidden notranslate">
-&lt;input type="month" name="month"/&gt;</pre>
- {{EmbedLiveSample("examplemonth",200,55,"","", "nobutton")}}</td>
- <td>{{HTMLVersionInline("5")}}</td>
- </tr>
- <tr>
- <td>{{HTMLElement("input/number", "number")}}</td>
- <td>A control for entering a number. Displays a spinner and adds default validation when supported. Displays a numeric keypad in some devices with dynamic keypads.</td>
- <td id="examplenumber">
- <pre class="brush: html hidden notranslate">
-&lt;input type="number" name="number"/&gt;</pre>
- {{EmbedLiveSample("examplenumber",200,55,"","", "nobutton")}}</td>
- <td>{{HTMLVersionInline("5")}}</td>
- </tr>
- <tr>
- <td>{{HTMLElement("input/password", "password")}}</td>
- <td>A single-line text field whose value is obscured. Will alert user if site is not secure.</td>
- <td id="examplepassword">
- <pre class="brush: html hidden notranslate">
-&lt;input type="password" name="password"/&gt;</pre>
- {{EmbedLiveSample("examplepassword",200,55,"","", "nobutton")}}</td>
- <td></td>
- </tr>
- <tr>
- <td>{{HTMLElement("input/radio", "radio")}}</td>
- <td>A radio button, allowing a single value to be selected out of multiple choices with the same {{anch('htmlattrdefname', 'name')}} value.</td>
- <td id="exampleradio">
- <pre class="brush: html hidden notranslate">
-&lt;input type="radio" name="radio"/&gt;</pre>
- {{EmbedLiveSample("exampleradio",200,55,"","", "nobutton")}}</td>
- <td></td>
- </tr>
- <tr>
- <td>{{HTMLElement("input/range", "range")}}</td>
- <td>A control for entering a number whose exact value is not important. Displays as a range widget defaulting to the middle value. Used in conjunction {{anch('htmlattrdefmin', 'min')}} and {{anch('htmlattrdefmax', 'max')}} to define the range of acceptable values.</td>
- <td id="examplerange">
- <pre class="brush: html hidden notranslate">
-&lt;input type="range" name="range" min="0" max="25"/&gt;</pre>
- {{EmbedLiveSample("examplerange",200,55,"","", "nobutton")}}</td>
- <td>{{HTMLVersionInline("5")}}</td>
- </tr>
- <tr>
- <td>{{HTMLElement("input/reset", "reset")}}</td>
- <td>A button that resets the contents of the form to default values. Not recommended.</td>
- <td id="examplereset">
- <pre class="brush: html hidden notranslate">
-&lt;input type="reset" name="reset"/&gt;</pre>
- {{EmbedLiveSample("examplereset",200,55,"","", "nobutton")}}</td>
- <td></td>
- </tr>
- <tr>
- <td>{{HTMLElement("input/search", "search")}}</td>
- <td>A single-line text field for entering search strings. Line-breaks are automatically removed from the input value. May include a delete icon in supporting browsers that can be used to clear the field. Displays a search icon instead of enter key on some devices with dynamic keypads.</td>
- <td id="examplesearch">
- <pre class="brush: html hidden notranslate">
-&lt;input type="search" name="search"/&gt;</pre>
- {{EmbedLiveSample("examplesearch",200,55,"","", "nobutton")}}</td>
- <td>{{HTMLVersionInline("5")}}</td>
- </tr>
- <tr>
- <td>{{HTMLElement("input/submit", "submit")}}</td>
- <td>A button that submits the form.</td>
- <td id="examplesubmit">
- <pre class="brush: html hidden notranslate">
-&lt;input type="submit" name="submit"/&gt;</pre>
- {{EmbedLiveSample("examplesubmit",200,55,"","", "nobutton")}}</td>
- <td></td>
- </tr>
- <tr>
- <td>{{HTMLElement("input/tel", "tel")}}</td>
- <td>A control for entering a telephone number. Displays a telephone keypad in some devices with dynamic keypads.</td>
- <td id="exampletel">
- <pre class="brush: html hidden notranslate">
-&lt;input type="tel" name="tel"/&gt;</pre>
- {{EmbedLiveSample("exampletel",200,55,"","", "nobutton")}}</td>
- <td>{{HTMLVersionInline("5")}}</td>
- </tr>
- <tr>
- <td>{{HTMLElement("input/text", "text")}}</td>
- <td>The default value. A single-line text field. Line-breaks are automatically removed from the input value.</td>
- <td id="exampletext">
- <pre class="brush: html hidden notranslate">
-&lt;input type="text" name="text"/&gt;</pre>
- {{EmbedLiveSample("exampletext",200,55,"","", "nobutton")}}</td>
- <td></td>
- </tr>
- <tr>
- <td>{{HTMLElement("input/time", "time")}}</td>
- <td>A control for entering a time value with no time zone.</td>
- <td id="exampletime">
- <pre class="brush: html hidden notranslate">
-&lt;input type="time" name="time"/&gt;</pre>
- {{EmbedLiveSample("exampletime",200,55,"","", "nobutton")}}</td>
- <td>{{HTMLVersionInline("5")}}</td>
- </tr>
- <tr>
- <td>{{HTMLElement("input/url", "url")}}</td>
- <td>A field for entering a URL. Looks like a <code>text</code> input, but has validation parameters and relevant keyboard in supporting browsers and devices with dynamic keyboards.</td>
- <td id="exampleurl">
- <pre class="brush: html hidden notranslate">
-&lt;input type="url" name="url"/&gt;</pre>
- {{EmbedLiveSample("exampleurl",200,55,"","", "nobutton")}}</td>
- <td>{{HTMLVersionInline("5")}}</td>
- </tr>
- <tr>
- <td>{{HTMLElement("input/week", "week")}}</td>
- <td>A control for entering a date consisting of a week-year number and a week number with no time zone.</td>
- <td id="exampleweek">
- <pre class="brush: html hidden notranslate">
-&lt;input type="week" name="week"/&gt;</pre>
- {{EmbedLiveSample("exampleweek",200,55,"","", "nobutton")}}</td>
- <td>{{HTMLVersionInline("5")}}</td>
- </tr>
- <tr>
- <th colspan="4">Obsolete values</th>
- </tr>
- <tr>
- <td>{{HTMLElement("input/datetime", "datetime")}}</td>
- <td>{{deprecated_inline}} {{obsolete_inline}} A control for entering a date and time (hour, minute, second, and fraction of a second) based on UTC time zone.</td>
- <td id="exampledatetime">
- <pre class="brush: html hidden notranslate">
-&lt;input type="datetime" name="datetime"/&gt;</pre>
- {{EmbedLiveSample("exampledatetime",200,75,"","", "nobutton")}}</td>
- <td>{{HTMLVersionInline("5")}}</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Attributes">Attributes</h2>
-
-<p>The <code>&lt;input&gt;</code> element is so powerful because of its attributes; the {{htmlattrxref("type", "input")}} attribute, described with examples above, being the most important. Since every <code>&lt;input&gt;</code> element, regardless of type, is based on the {{domxref("HTMLInputElement")}} interface, they technically share the exact same set of attributes. However, in reality, most attributes have an effect on only a specific subset of input types. In addition, the way some attributes impact an input depends on the input type, impacting different input types in different ways.</p>
-
-<p>This section provides a table listing all the attributes with a brief description. This table is followed by a list describing each attribute in greater detail, along with which input types they are associated with.Those that are common to most or all input types are defined in greater detail below. Attributes that are unique to particular input types—or attributes which are common to all input types but have special behaviors when used on a given input type—are instead documented on those types' pages. This element includes the <a href="/en-US/docs/Web/HTML/Global_attributes">global attributes</a>. Those with extra importance as it relates to <code>&lt;input&gt;</code> are highlighted.</p>
-
-<table class="standard-table">
- <caption>Attributes for the {{htmlelement('input')}} element include <a href="/en-US/docs/Web/HTML/Global_attributes">global HTML attributes</a> and:</caption>
- <thead>
- <tr>
- <th scope="col">Attribute</th>
- <th scope="col">Type or Types</th>
- <th scope="col">Description</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{anch('htmlattrdefaccept', 'accept')}}</td>
- <td>file</td>
- <td>Hint for expected file type in file upload controls</td>
- </tr>
- <tr>
- <td>{{anch('htmlattrdefalt', 'alt')}}</td>
- <td>image</td>
- <td>alt attribute for the image type. Required for accessibility</td>
- </tr>
- <tr>
- <td>{{anch('htmlattrdefautocomplete', 'autocomplete')}}</td>
- <td>all</td>
- <td>Hint for form autofill feature</td>
- </tr>
- <tr>
- <td>{{anch('htmlattrdefautofocus', 'autofocus')}}</td>
- <td>all</td>
- <td>Automatically focus the form control when the page is loaded</td>
- </tr>
- <tr>
- <td>{{anch('htmlattrdefcapture', 'capture')}}</td>
- <td>file</td>
- <td>Media capture input method in file upload controls</td>
- </tr>
- <tr>
- <td>{{anch('htmlattrdefchecked', 'checked')}}</td>
- <td>radio, checkbox</td>
- <td>Whether the command or control is checked</td>
- </tr>
- <tr>
- <td>{{anch('htmlattrdefdirname', 'dirname')}}</td>
- <td>text, search</td>
- <td>Name of form field to use for sending the element's directionality in form submission</td>
- </tr>
- <tr>
- <td>{{anch('htmlattrdefdisabled', 'disabled')}}</td>
- <td>all</td>
- <td>Whether the form control is disabled</td>
- </tr>
- <tr>
- <td>{{anch('htmlattrdefform', 'form')}}</td>
- <td>all</td>
- <td>Associates the control with a form element</td>
- </tr>
- <tr>
- <td>{{anch('htmlattrdefformaction', 'formaction')}}</td>
- <td>image, submit</td>
- <td>URL to use for form submission</td>
- </tr>
- <tr>
- <td>{{anch('htmlattrdefformenctype', 'formenctype')}}</td>
- <td>image, submit</td>
- <td>Form data set encoding type to use for form submission</td>
- </tr>
- <tr>
- <td>{{anch('htmlattrdefformmethod', 'formmethod')}}</td>
- <td>image, submit</td>
- <td>HTTP method to use for form submission</td>
- </tr>
- <tr>
- <td>{{anch('htmlattrdefformnovalidate', 'formnovalidate')}}</td>
- <td>image, submit</td>
- <td>Bypass form control validation for form submission</td>
- </tr>
- <tr>
- <td>{{anch('htmlattrdefformtarget', 'formtarget')}}</td>
- <td>image, submit</td>
- <td>Browsing context for form submission</td>
- </tr>
- <tr>
- <td>{{anch('htmlattrdefheight', 'height')}}</td>
- <td>image</td>
- <td>Same as <code>height</code> attribute for {{htmlelement('img')}}; vertical dimension</td>
- </tr>
- <tr>
- <td>{{anch('htmlattrdeflist', 'list')}}</td>
- <td>almost all</td>
- <td>Value of the id attribute of the {{htmlelement('datalist')}} of autocomplete options</td>
- </tr>
- <tr>
- <td>{{anch('htmlattrdefmax', 'max')}}</td>
- <td>numeric types</td>
- <td>Maximum value</td>
- </tr>
- <tr>
- <td>{{anch('htmlattrdefmaxlength', 'maxlength')}}</td>
- <td>password, search, tel, text, url</td>
- <td>Maximum length (number of characters) of <code>value</code></td>
- </tr>
- <tr>
- <td>{{anch('htmlattrdefmin', 'min')}}</td>
- <td>numeric types</td>
- <td>Minimum value</td>
- </tr>
- <tr>
- <td>{{anch('htmlattrdefminlength', 'minlength')}}</td>
- <td>password, search, tel, text, url</td>
- <td>Minimum length (number of characters) of <code>value</code></td>
- </tr>
- <tr>
- <td>{{anch('htmlattrdefmultiple', 'multiple')}}</td>
- <td>email, file</td>
- <td>Boolean. Whether to allow multiple values</td>
- </tr>
- <tr>
- <td>{{anch('htmlattrdefname', 'name')}}</td>
- <td>all</td>
- <td>Name of the form control. Submitted with the form as part of a name/value pair.</td>
- </tr>
- <tr>
- <td>{{anch('htmlattrdefpattern', 'pattern')}}</td>
- <td>password, text, tel</td>
- <td>Pattern the <code>value</code> must match to be valid</td>
- </tr>
- <tr>
- <td>{{anch('htmlattrdefplaceholder', 'placeholder')}}</td>
- <td>password, search, tel, text, url</td>
- <td>Text that appears in the form control when it has no value set</td>
- </tr>
- <tr>
- <td><a href="/en-US/docs/Web/HTML/Attributes/readonly">readonly</a></td>
- <td>almost all</td>
- <td>Boolean. The value is not editable</td>
- </tr>
- <tr>
- <td><a href="/en-US/docs/Web/HTML/Attributes/required">required</a></td>
- <td>almost all</td>
- <td>Boolean. A value is required or must be check for the form to be submittable</td>
- </tr>
- <tr>
- <td>{{anch('htmlattrdefsize', 'size')}}</td>
- <td>email, password, tel, text</td>
- <td>Size of the control</td>
- </tr>
- <tr>
- <td>{{anch('htmlattrdefsrc', 'src')}}</td>
- <td>image</td>
- <td>Same as <code>src</code> attribute for {{htmlelement('img')}}; address of image resource</td>
- </tr>
- <tr>
- <td>{{anch('htmlattrdefstep', 'step')}}</td>
- <td>numeric types</td>
- <td>Incremental values that are valid.</td>
- </tr>
- <tr>
- <td>{{anch('htmlattrdeftype', 'type')}}</td>
- <td>all</td>
- <td>Type of form control</td>
- </tr>
- <tr>
- <td>{{anch('htmlattrdefvalue', 'value')}}</td>
- <td>all</td>
- <td>Current value of the form control. Submitted with the form as part of a name/value pair.</td>
- </tr>
- <tr>
- <td>{{anch('htmlattrdefwidth', 'width')}}</td>
- <td>image</td>
- <td>Same as <code>width</code> attribute for {{htmlelement('img')}}</td>
- </tr>
- </tbody>
-</table>
-
-<p>A few additional non-standard attributes are listed following the descriptions of the standard attributes.</p>
-
-<h3 id="Individual_attributes">Individual attributes</h3>
-
-<dl>
- <dt id="htmlattrdefaccept">{{htmlattrdef("accept")}}</dt>
- <dd>
- <p>Valid for the <code>file</code> input type only, the <code>accept</code> attribute defines which file types are selectable in a <code>file</code> upload control. See the {{HTMLElement("input/file", "file")}} input type.</p>
- </dd>
- <dt id="htmlattrdefalt">{{htmlattrdef("alt")}}</dt>
- <dd>
- <p>Valid for the <code>image</code> button only, the <code>alt</code> attribute provides alternative text for the image, displaying the value of the attribute if the image <a href="#htmlattrdefsrc"><code>src</code></a> is missing or otherwise fails to load. See the {{HTMLElement("input/image", "image")}} input type.</p>
- </dd>
- <dt id="htmlattrdefautocomplete">{{htmlattrdef("autocomplete")}}</dt>
- <dd>
- <p>(<strong>Not</strong> a Boolean attribute!) The <code><a href="/en-US/docs/Web/HTML/Attributes/autocomplete">autocomplete</a></code> attribute takes as its value a space-separated string that describes what, if any, type of autocomplete functionality the input should provide. A typical implementation of autocomplete simply recalls previous values entered in the same input field, but more complex forms of autocomplete can exist. For instance, a browser could integrate with a device's contacts list to autocomplete <code>email</code> addresses in an email input field. See {{SectionOnPage("/en-US/docs/Web/HTML/Attributes/autocomplete", "Values")}} for permitted values.</p>
-
- <p>The <code>autocomplete</code> attribute is valid on <code>hidden</code>, <code>text</code>, <code>search</code>, <code>url</code>, <code>tel</code>, <code>email</code>, <code>date</code>, <code>month</code>, <code>week</code>, <code>time</code>, <code>datetime-local</code>, <code>number</code>, <code>range</code>, <code>color</code>, and <code>password</code>. This attribute has no effect on input types that do not return numeric or text data, being valid for all input types except <code>checkbox</code>, <code>radio</code>, <code>file</code>, or any of the button types.</p>
-
- <p>See <a href="/en-US/docs/Web/HTML/Attributes/autocomplete">The HTML autocomplete attribute</a> for additional information, including information on password security and how <code>autocomplete</code> is slightly different for <code>hidden</code> than for other input types.</p>
- </dd>
- <dt id="htmlattrdefautofocus">{{htmlattrdef("autofocus")}}</dt>
- <dd>
- <p>A Boolean attribute which, if present, indicates that the input should automatically have focus when the page has finished loading (or when the {{HTMLElement("dialog")}} containing the element has been displayed).</p>
-
- <div class="note">
- <p><strong>Note:</strong> An element with the <code>autofocus</code> attribute may gain focus before the {{domxref("DOMContentLoaded")}} event is fired.</p>
- </div>
-
- <p>No more than one element in the document may have the <code>autofocus</code> attribute. If put on more than one element, the first one with the attribute receives focus.</p>
-
- <p>The <code>autofocus</code> attribute cannot be used on inputs of type <code>hidden</code>, since hidden inputs cannot be focused.</p>
-
- <div class="warning">
- <p><strong>Warning:</strong> Automatically focusing a form control can confuse visually-impaired people using screen-reading technology and people with cognitive impairments. When <code>autofocus</code> is assigned, screen-readers "teleport" their user to the form control without warning them beforehand.</p>
- </div>
-
- <p>Use careful consideration for accessibility when applying the <code>autofocus</code> attribute. Automatically focusing on a control can cause the page to scroll on load. The focus can also cause dynamic keyboards to display on some touch devices. While a screen reader will announce the label of the form control receiving focus, the screen reader will not announce anything before the label, and the sighted user on a small device will equally miss the context created by the preceding content.</p>
- </dd>
- <dt id="htmlattrdefcapture">{{htmlattrdef("capture")}}</dt>
- <dd>
- <p>Introduced in the HTML Media Capture specification and valid for the <code>file</code> input type only, the <code>capture</code> attribute defines which media—microphone, video, or camera—should be used to capture a new file for upload with <code>file</code> upload control in supporting scenarios. See the {{HTMLElement("input/file", "file")}} input type.</p>
- </dd>
- <dt id="htmlattrdefchecked">{{htmlattrdef("checked")}}</dt>
- <dd>
- <p>Valid for both <code>radio</code> and <code>checkbox</code> types, <code>checked</code> is a Boolean attribute. If present on a <code>radio</code> type, it indicates that that radio button is the currently selected one in the group of same-named radio buttons. If present on a <code>checkbox</code> type, it indicates that the checkbox is checked by default (when the page loads). It does <em>not</em> indicate whether this checkbox is currently checked: if the checkbox’s state is changed, this content attribute does not reflect the change. (Only the <a href="/en-US/docs/Web/API/HTMLInputElement"><code>HTMLInputElement</code>’s <code>checked</code> IDL attribute</a> is updated.)</p>
-
- <div class="note">
- <p><strong>Note:</strong> Unlike other input controls, a checkboxes and radio buttons value are only included in the submitted data if they are currently <code>checked</code>. If they are, the name and the value(s) of the checked controls are submitted.</p>
-
- <p>For example, if a checkbox whose <code>name</code> is <code>fruit</code> has a <code>value</code> of <code>cherry</code>, and the checkbox is checked, the form data submitted will include <code>fruit=cherry</code>. If the checkbox isn't active, it isn't listed in the form data at all. The default <code>value</code> for checkboxes and radio buttons is <code>on</code>.</p>
- </div>
- </dd>
- <dt id="htmlattrdefdirname">{{htmlattrdef("dirname")}}</dt>
- <dd>
- <p>Valid for <code>text</code> and <code>search</code> input types only, the <code>dirname</code> attribute enables the submission of the directionality of the element. When included, the form control will submit with two name/value pairs: the first being the <a href="#htmlattrdefname"><code>name</code></a> and <a href="#htmlattrdefvalue"><code>value</code></a>, the second being the value of the <code>dirname</code> as the name with the value of <code>ltr</code> or <code>rtl</code> being set by the browser.</p>
-
- <pre class="notranslate">&lt;form action="page.html" method="post"&gt;
- &lt;label&gt;Fruit: &lt;input type="text" name="fruit" dirname="fruit.dir" value="cherry"&gt;&lt;/label&gt;
- &lt;input type="submit"/&gt;
-&lt;/form&gt;
-&lt;!-- page.html?fruit=cherry&amp;fruit.dir=ltr --&gt;
-</pre>
-
- <p>When the form above is submitted, the input cause both the <code>name</code> / <code>value</code> pair of <code>fruit=cherry</code> and the <code>dirname</code> / direction pair of <code>fruit.dir=ltr</code> to be sent.</p>
- </dd>
- <dt id="htmlattrdefdisabled">{{htmlattrdef("disabled")}}</dt>
- <dd>
- <p>A Boolean attribute which, if present, indicates that the user should not be able to interact with the input. Disabled inputs are typically rendered with a dimmer color or using some other form of indication that the field is not available for use.</p>
-
- <p>Specifically, disabled inputs do not receive the {{domxref("Element/click_event", "click")}} event, and disabled inputs are not submitted with the form.</p>
-
- <div class="note">
- <p><strong>Note:</strong> Although not required by the specification, Firefox will by default <a href="https://stackoverflow.com/questions/5985839/bug-with-firefox-disabled-attribute-of-input-not-resetting-when-refreshing">persist the dynamic disabled state</a> of an <code>&lt;input&gt;</code> across page loads. Use the {{htmlattrxref("autocomplete","input")}} attribute to control this feature.</p>
- </div>
- </dd>
- <dt id="htmlattrdefform">{{htmlattrdef("form")}}</dt>
- <dd>
- <p>A string specifying the {{HTMLElement("form")}} element with which the input is associated (that is, its <strong>form owner</strong>). This string's value, if present, must match the {{htmlattrxref("id")}} of a <code>&lt;form&gt;</code> element in the same document. If this attribute isn't specified, the <code>&lt;input&gt;</code> element is associated with the nearest containing form, if any.</p>
-
- <p>The <code>form</code> attribute lets you place an input anywhere in the document but have it included with a form elsewhere in the document.</p>
-
- <div class="note">
- <p><strong>Note:</strong> An input can only be associated with one form.</p>
- </div>
- </dd>
- <dt id="htmlattrdefformaction">{{htmlattrdef('formaction')}}</dt>
- <dd>
- <p>Valid for the <code>image</code> and <code>submit</code> input types only. See the {{HTMLElement("input/submit", "submit")}} input type for more information.</p>
- </dd>
- <dt id="htmlattrdefformenctype">{{htmlattrdef('formenctype')}}</dt>
- <dd>
- <p>Valid for the <code>image</code> and <code>submit</code> input types only. See the {{HTMLElement("input/submit", "submit")}} input type for more information.</p>
- </dd>
- <dt id="htmlattrdefformmethod">{{htmlattrdef('formmethod')}}</dt>
- <dd>
- <p>Valid for the <code>image</code> and <code>submit</code> input types only. See the {{HTMLElement("input/submit", "submit")}} input type for more information.</p>
- </dd>
- <dt id="htmlattrdefformnovalidate">{{htmlattrdef('formnovalidate')}}</dt>
- <dd>
- <p>Valid for the <code>image</code> and <code>submit</code> input types only. See the {{HTMLElement("input/submit", "submit")}} input type for more information.</p>
- </dd>
- <dt id="htmlattrdefformtarget">{{htmlattrdef('formtarget')}}</dt>
- <dd>
- <p>Valid for the <code>image</code> and <code>submit</code> input types only. See the {{HTMLElement("input/submit", "submit")}} input type for more information.</p>
- </dd>
- <dt id="htmlattrdefheight">{{htmlattrdef("height")}}</dt>
- <dd>
- <p>Valid for the <code>image</code> input button only, the <code>height</code> is the height of the image file to display to represent the graphical submit button. See the {{HTMLElement("input/image", "image")}} input type.</p>
- </dd>
- <dt id="htmlattrdefheight">{{htmlattrdef("id")}}</dt>
- <dd>
- <p>Global attribute valid for all elements, including all the input types, it defines a unique identifier (ID) which must be unique in the whole document. Its purpose is to identify the element when linking. The value is used as the value of the {{htmlelement('label')}}'s <code>for</code> attribute to link the label with the form control. See {{htmlelement('label')}}.</p>
- </dd>
- <dt id="htmlattrdefheight">{{htmlattrdef("inputmode")}}</dt>
- <dd>
- <p>Global value valid for all elements, it provides a hint to browsers as to the type of virtual keyboard configuration to use when editing this element or its contents. Values include <code>none</code>, <code>text</code>, <code>tel</code>, <code>url</code>, <code>email</code>, <code>numeric</code>, <code>decimal</code>, and <code>search</code>.</p>
- </dd>
- <dt id="htmlattrdeflist">{{htmlattrdef("list")}}</dt>
- <dd id="datalist">
- <p>The value given to the <code>list</code> attribute should be. the {{domxref("Element.id", "id")}} of a {{HTMLElement("datalist")}} element located in the same document. The <code>&lt;datalist&gt;</code> provides a list of predefined values to suggest to the user for this input. Any values in the list that are not compatible with the {{htmlattrxref("type", "input")}} are not included in the suggested options. The values provided are suggestions, not requirements: users can select from this predefined list or provide a different value.</p>
-
- <pre class="brush: html hidden notranslate">&lt;datalist id="colorsxx"&gt;
- &lt;option&gt;#ff0000&lt;/option&gt;
- &lt;option&gt;#ee0000&lt;/option&gt;
- &lt;option&gt;#dd0000&lt;/option&gt;
- &lt;option&gt;#cc0000&lt;/option&gt;
- &lt;option&gt;#bb0000&lt;/option&gt;
-&lt;/datalist&gt;
-&lt;datalist id="numbersxx"&gt;
- &lt;option&gt;0&lt;/option&gt;
- &lt;option&gt;2&lt;/option&gt;
- &lt;option&gt;4&lt;/option&gt;
- &lt;option&gt;8&lt;/option&gt;
- &lt;option&gt;16&lt;/option&gt;
- &lt;option&gt;32&lt;/option&gt;
- &lt;option&gt;64&lt;/option&gt;
-&lt;/datalist&gt;
-&lt;datalist id="fruitsxx"&gt;
- &lt;option&gt;cherry&lt;/option&gt;
- &lt;option&gt;banana&lt;/option&gt;
- &lt;option&gt;mango&lt;/option&gt;
- &lt;option&gt;orange&lt;/option&gt;
- &lt;option&gt;blueberry&lt;/option&gt;
-&lt;/datalist&gt;
-&lt;datalist id="urlsxx"&gt;
- &lt;option&gt;https://developer.mozilla.org&lt;/option&gt;
- &lt;option&gt;https://caniuse.com/&lt;/option&gt;
- &lt;option&gt;https://mozilla.com&lt;/option&gt;
- &lt;option&gt;https://mdn.github.io&lt;/option&gt;
- &lt;option&gt;https://www.youtube.com/user/firefoxchannel&lt;/option&gt;
-&lt;/datalist&gt;
-
-&lt;p&gt;&lt;label for="textx"&gt;Text&lt;/label&gt; &lt;input type="text" list="fruitsxx" id="textx"/&gt;&lt;/p&gt;
-&lt;p&gt;&lt;label for="colorx"&gt;Color&lt;/label&gt; &lt;input type="color" list="colorsxx" id="colorx"/&gt;&lt;/p&gt;
-&lt;p&gt;&lt;label for="rangex"&gt;Range&lt;/label&gt; &lt;input type="range" min="0" max="64" list="numbersxx" id="rangex"/&gt;&lt;/p&gt;
-&lt;p&gt;&lt;label for="numberx"&gt;Number&lt;/label&gt; &lt;input type="number" min="0" max="64" list="numbersxx" id="numberx"/&gt;&lt;/p&gt;
-&lt;p&gt;&lt;label for="urlx"&gt;URL&lt;/label&gt; &lt;input type="url" list="urlsxx" id="urlx"/&gt;&lt;/p&gt;</pre>
-
- <p>{{EmbedLiveSample("datalist",400,275,"","", "nobutton")}}</p>
-
- <p>It is valid on <code>text</code>, <code>search</code>, <code>url</code>, <code>tel</code>, <code>email</code>, <code>date</code>, <code>month</code>, <code>week</code>, <code>time</code>, <code>datetime-local</code>, <code>number</code>, <code>range</code>, and <code>color</code>.</p>
-
- <p>Per the specifications, the <code>list</code> attribute is not supported by the <code>hidden</code>, <code>password</code>, <code>checkbox</code>, <code>radio</code>, <code>file</code>, or any of the button types.</p>
-
- <p>Depending on the browser, the user may see a custom color palette suggested, tic marks along a range, or even a input that opens like a {{HTMLElement("select")}} but allows for non-listed values. Check out the <a href="/en-US/docs/Web/HTML/Element/datalist#Browser_compatibility">browser compatibility table</a> for the other input types.</p>
-
- <p>See the {{htmlelement('datalist')}} element.</p>
- </dd>
- <dt id="htmlattrdefmax"><a href="/en-US/docs/Web/HTML/Attributes/max">{{htmlattrdef("max")}}</a></dt>
- <dd>
- <p>Valid for <code>date</code>, <code>month</code>, <code>week</code>, <code>time</code>, <code>datetime-local</code>, <code>number</code>, and <code>range</code>, it defines the greatest value in the range of permitted values. If the {{htmlattrxref("value", "input")}} entered into the element exceeds this, the element fails <a href="/en-US/docs/Web/Guide/HTML/HTML5/Constraint_validation">constraint validation</a>. If the value of the <code>max</code> attribute isn't a number, then the element has no maximum value.</p>
-
- <p>There is a special case: if the data type is periodic (such as for dates or times), the value of <code>max</code> may be lower than the value of <code>min</code>, which indicates that the range may wrap around; for example, this allows you to specify a time range from 10 PM to 4 AM.</p>
- </dd>
- <dt id="htmlattrdefmaxlength">{{htmlattrdef("maxlength")}}</dt>
- <dd>
- <p>Valid for <code>text</code>, <code>search</code>, <code>url</code>, <code>tel</code>, <code>email</code>, and <code>password</code>, it defines the maximum number of characters (as UTF-16 code units) the user can enter into the field. This must be an integer value <code>0</code> or higher. If no <code>maxlength</code> is specified, or an invalid value is specified, the field has no maximum length. This value must also be greater than or equal to the value of <code>minlength</code>.</p>
-
- <p>The input will fail <a href="/en-US/docs/Web/Guide/HTML/HTML5/Constraint_validation">constraint validation</a> if the length of the text entered into the field is greater than <code>maxlength</code> UTF-16 code units long. By default, browsers prevent users from entering more characters than allowed by the <code>maxlength</code> attribute. See {{anch("Client-side validation")}} for more information.</p>
- </dd>
- <dt id="htmlattrdefmin">{{htmlattrdef("min")}}</dt>
- <dd>
- <p>Valid for <code>date</code>, <code>month</code>, <code>week</code>, <code>time</code>, <code>datetime-local</code>, <code>number</code>, and <code>range</code>, it defines the most negative value in the range of permitted values. If the {{htmlattrxref("value", "input")}} entered into the element is less than this this, the element fails <a href="/en-US/docs/Web/Guide/HTML/HTML5/Constraint_validation">constraint validation</a>. If the value of the <code>min</code> attribute isn't a number, then the element has no minimum value.</p>
-
- <p>This value must be less than or equal to the value of the <code>max</code> attribute. If the <code>min</code> attribute is present but is not specified or is invalid, no <code>min</code> value is applied. If the <code>min</code> attribute is valid and a non-empty value is less than the minimum allowed by the <code>min</code> attribute, constraint validation will prevent form submission. See {{anch("Client-side validation")}} for more information.</p>
-
- <p>There is a special case: if the data type is periodic (such as for dates or times), the value of <code>max</code> may be lower than the value of <code>min</code>, which indicates that the range may wrap around; for example, this allows you to specify a time range from 10 PM to 4 AM.</p>
- </dd>
- <dt id="htmlattrdefminlength">{{htmlattrdef("minlength")}}</dt>
- <dd>
- <p>Valid for <code>text</code>, <code>search</code>, <code>url</code>, <code>tel</code>, <code>email</code>, and <code>password</code>, it defines the minimum number of characters (as UTF-16 code units) the user can enter into the entry field. This must be an non-negative integer value smaller than or equal to the value specified by <code>maxlength</code>. If no <code>minlength</code> is specified, or an invalid value is specified, the input has no minimum length.</p>
-
- <p>The input will fail <a href="/en-US/docs/Web/Guide/HTML/HTML5/Constraint_validation">constraint validation</a> if the length of the text entered into the field is fewer than <code>minlength</code> UTF-16 code units long, preventing form submission. See {{anch("Client-side validation")}} for more information.</p>
- </dd>
- <dt id="htmlattrdefmultiple">{{htmlattrdef("multiple")}}</dt>
- <dd>
- <p>The Boolean <code>multiple</code> attribute, if set, means the user can enter comma separated email addresses in the email widget or can choose more than one file with the <code>file</code> input. See the {{HTMLElement("input/email", "email")}} and {{HTMLElement("input/file", "file")}} input type.</p>
- </dd>
- <dt id="htmlattrdefname">{{htmlattrdef("name")}}</dt>
- <dd>
- <p>A string specifying a name for the input control. This name is submitted along with the control's value when the form data is submitted.</p>
-
- <h5 id="Whats_in_a_name">What's in a name</h5>
-
- <p>Consider the <code>name</code> a required attribute (even though it's not). If an input has no <code>name</code> specified, or <code>name</code> is empty, the input's value is not submitted with the form! (Disabled controls, unchecked radio buttons, unchecked checkboxes, and reset buttons are also not sent.)</p>
-
- <p>There are two special cases:</p>
-
- <ol>
- <li><code>_charset_</code> : If used as the name of an <code>&lt;input&gt;</code> element of type {{HTMLElement("input/hidden", "hidden")}}, the input's <code>value</code> is automatically set by the {{Glossary("user agent")}} to the character encoding being used to submit the form.</li>
- <li><code>isindex</code>: For historical reasons, the name <code><a href="https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-name">isindex</a></code> is not allowed.</li>
- </ol>
-
- <h5 id="name_and_radio_buttons">name and radio buttons</h5>
-
- <p>The <a href="#htmlattrdefname"><code>name</code></a> attribute creates a unique behavior for radio buttons.</p>
-
- <p>Only one radio button in a same-named group of radio buttons can be checked at a time. Selecting any radio button in that group automatically deselects any currently-selected radio button in the same group. The value of that one checked radio button is sent along with the name if the form is submitted,</p>
-
- <p>When tabbing into a series of same-named group of radio buttons, if one is checked, that one will receive focus. If they aren't grouped together in source order, if one of the group is checked, tabbing into the group starts when the first one in the group is encountered, skipping all those that aren't checked. In other words, if one is checked, tabbing skips the unchecked radio buttons in the group. If none are checked, the radio button group receives focus when the first button in the same name group is reached.</p>
-
- <p>Once one of the radio buttons in a group has focus, using the arrow keys will navigate through all the radio buttons of the same name, even if the radio buttons are not grouped together in the source order.</p>
-
- <h5 id="HTMLFormElement.elements">HTMLFormElement.elements</h5>
-
- <p>When an input element is given a <code>name</code>, that name becomes a property of the owning form element's {{domxref("HTMLFormElement.elements")}} property. If you have an input whose <code>name</code> is set to <code>guest</code> and another whose <code>name</code> is <code>hat-size</code>, the following code can be used:</p>
-
- <pre class="brush: js notranslate">let form = document.querySelector("form");
-
-let guestName = form.elements.guest;
-let hatSize = form.elements["hat-size"];
-</pre>
-
- <p>When this code has run, <code>guestName</code> will be the {{domxref("HTMLInputElement")}} for the <code>guest</code> field, and <code>hatSize</code> the object for the <code>hat-size</code> field.</p>
-
- <div class="warning">
- <p><strong>Warning:</strong> Avoid giving form elements a <code>name</code> that corresponds to a built-in property of the form, since you would then override the predefined property or method with this reference to the corresponding input.</p>
- </div>
- </dd>
- <dt id="htmlattrdefpattern">{{htmlattrdef("pattern")}}</dt>
- <dd>
- <div id="pattern-include">
- <p>The <code>pattern</code> attribute, when specified, is a regular expression that the input's {{htmlattrxref("value")}} must match in order for the value to pass <a href="/en-US/docs/Web/Guide/HTML/HTML5/Constraint_validation">constraint validation</a>. It must be a valid JavaScript regular expression, as used by the {{jsxref("RegExp")}} type, and as documented in our <a href="/en-US/docs/Web/JavaScript/Guide/Regular_Expressions">guide on regular expressions</a>; the <code>'u'</code> flag is specified when compiling the regular expression, so that the pattern is treated as a sequence of Unicode code points, instead of as ASCII. No forward slashes should be specified around the pattern text.</p>
-
- <p>If the <code>pattern</code> attribute is present but is not specified or is invalid, no regular expression is applied and this attribute is ignored completely. If the pattern attribute is valid and a non-empty value does not match the pattern, constraint validation will prevent form submission.</p>
-
- <div class="note">
- <p><strong>Tip:</strong> If using the <code>pattern</code> attribute, inform the user about the expected format by including explanatory text nearby. You can also include a {{htmlattrxref("title", "input")}} attribute to explain what the requirements are to match the pattern; most browsers will display this title as a tooltip. The visible explanation is required for accessibility. The tooltip is an enhancement.</p>
- </div>
- </div>
-
- <p>See {{anch("Client-side validation")}} for more information.</p>
- </dd>
- <dt id="htmlattrdefplaceholder">{{htmlattrdef("placeholder")}}</dt>
- <dd>
- <p>The <code>placeholder</code> attribute is a string that provides a brief hint to the user as to what kind of information is expected in the field. It should be a word or short phrase that provides a hint as to the expected type of data, rather than an explanation or prompt. The text <em>must not</em> include carriage returns or line feeds. So for example if a field is expected to capture a user's first name, and its label is "First Name", a suitable placeholder might be "e.g. Mustafa".</p>
-
- <div class="note">
- <p><strong>Note:</strong> The <code>placeholder</code> attribute is not as semantically useful as other ways to explain your form, and can cause unexpected technical issues with your content. See {{SectionOnPage("/en-US/docs/Web/HTML/Element/input", "Labels")}} for more information.</p>
- </div>
- </dd>
- <dt id="htmlattrdefreadonly">{{htmlattrdef("readonly")}}</dt>
- <dd>
- <p>A Boolean attribute which, if present, indicates that the user should not be able to edit the value of the input. The <code>readonly</code> attribute is supported <code>text</code>, <code>search</code>, <code>url</code>, <code>tel</code>, <code>email</code>, <code>date</code>, <code>month</code>, <code>week</code>, <code>time</code>, <code>datetime-local</code>, <code>number</code>, and <code>password</code> input types.</p>
-
- <p>See the <a href="/en-US/docs/Web/HTML/Attributes/readonly">HTML attribute: <code>readonly</code></a> for more information.</p>
- </dd>
- <dt id="htmlattrdefrequired">{{htmlattrdef("required")}}</dt>
- <dd>
- <p><code>required</code> is a Boolean attribute which, if present, indicates that the user must specify a value for the input before the owning form can be submitted. The <code>required</code> attribute is supported <code>text</code>, <code>search</code>, <code>url</code>, <code>tel</code>, <code>email</code>, <code>date</code>, <code>month</code>, <code>week</code>, <code>time</code>, <code>datetime-local</code>, <code>number</code>, <code>password</code>, <code>checkbox</code>, <code>radio</code>, and <code>file</code>.</p>
-
- <p>See {{anch("Client-side validation")}} and the <a href="/en-US/docs/Web/HTML/Attributes/required">HTML attribute: <code>required</code></a> for more information.</p>
- </dd>
- <dt id="htmlattrdefsize">{{htmlattrdef("size")}}</dt>
- <dd>Valid for <code>email</code>, <code>password</code>, <code>tel</code>, and <code>text</code> <code>input</code> types only. Specifies how much of the input is shown. Basically creates same result as setting CSS <code>width</code> property with a few specialities. The actual unit of the value depends on the input type. For <code>password</code> and <code>text</code>, it is a number of characters (or <code>em</code> units) with a default value of <code>20</code>, and for others, it is <code>pixel</code>s. CSS width takes precedence over size attribute.</dd>
- <dt id="htmlattrdefsrc">{{htmlattrdef("src")}}</dt>
- <dd>
- <p>Valid for the <code>image</code> input button only, the <code>src</code> is string specifying the URL of the image file to display to represent the graphical submit button. See the {{HTMLElement("input/image", "image")}} input type.</p>
- </dd>
- <dt id="htmlattrdefstep">{{htmlattrdef("step")}}</dt>
- <dd>
- <div id="step-include">
- <p>Valid for the numeric input types, including <code>number</code>, date/time input types, and <code>range</code>, the <code><a href="/en-US/docs/Web/HTML/Attributes/step">step</a></code> attribute is a number that specifies the granularity that the value must adhere to.</p>
-
- <p>If not explicitly included, <code>step</code> defaults to 1 for <code>number</code> and <code>range</code>, and 1 unit type (second, week, month, day) for the date/time input types. The value can must be a positive number—integer or float—or the special value <code>any</code>, which means no stepping is implied, and any value is allowed (barring other constraints, such as <code>{{anch("min")}}</code> and <code>{{anch("max")}}</code>).</p>
-
- <p>If <code>any</code> is not explicity set, valid values for the <code>number</code>, date/time input types, and <code>range</code> input types are equal to the basis for stepping - the <code>{{anch("min")}}</code> value and increments of the step value, up to the <code>{{anch("max")}}</code> value, if specified.</p>
-
- <p>For example, if you have <code>&lt;input type="number" min="10" step="2"&gt;</code>, then any even integer, <code>10</code> or greater, is valid. If omitted, <code>&lt;input type="number"&gt;</code>, any integer is valid, but floats (like <code>4.2</code>) are not valid, because <code>step</code> defaults to <code>1</code>. For <code>4.2</code> to be valid, <code>step</code> would have had to be set to <code>any</code>, 0.1, 0.2, or any the <code>min</code> value would have had to be a number ending in <code>.2</code>, such as <code>&lt;input type="number" min="-5.2"&gt;</code></p>
-
- <div class="note">
- <p><strong>Note:</strong> When the data entered by the user doesn't adhere to the stepping configuration, the value is considered invalid in contraint validation and will match the <code>:invalid</code> pseudoclass.</p>
- </div>
- </div>
-
- <p>The step attribute is expressed in seconds. The step scale factor is 1000 (which converts the seconds to milliseconds, as used in the other algorithms). The <strong>default step is 60 seconds</strong>.</p>
-
- <p>See {{anch("Client-side validation")}} for more information.</p>
- </dd>
- <dt id="htmlattrdeftype">{{htmlattrdef("tabindex")}}</dt>
- <dd>
- <p>Global attribute valid for all elements, including all the input types, an integer attribute indicating if the element can take input focus (is focusable), if it should participate to sequential keyboard navigation. As all input types except for input of type hidden are focusable, this attribute should not be used on form controls, because doing so would require the management of the focus order for all elements within the document with the risk of harming usability and accessibility if done incorrectly.</p>
- </dd>
- <dt id="htmlattrdefformenctype">{{htmlattrdef('title')}}</dt>
- <dd>
- <p>Global attribute valid for all elements, including all input types, containing a text representing advisory information related to the element it belongs to. Such information can typically, but not necessarily, be presented to the user as a tooltip. The title should NOT be used as the primary explanation of the purpose of the form control. Instead, use the {{htmlelement('label')}} element with a <code>for</code> attribute set to the form control's {{htmlattrdef('id')}} attribute. See {{anch("Labels")}} below.</p>
- </dd>
- <dt id="htmlattrdeftype">{{htmlattrdef("type")}}</dt>
- <dd>
- <p>A string specifying the type of control to render. For example, to create a checkbox, a value of <code>checkbox</code> is used. If omitted (or an unknown value is specified), the input type <code>text</code> is used, creating a plaintext input field.</p>
-
- <p>Permitted values are listed in {{anch("&lt;input&gt; types", "<code>&lt;input&gt;</code> types")}} above.</p>
- </dd>
- <dt id="htmlattrdefvalue">{{htmlattrdef("value")}}</dt>
- <dd>
- <p>The input control's value. When specified in the HTML, this is the initial value, and from then on it can be altered or retrieved at any time using JavaScript to access the respective {{domxref("HTMLInputElement")}} object's <code>value</code> property. The <code>value</code> attribute is always optional, though should be considered mandatory for <code>checkbox</code>, <code>radio</code>, and <code>hidden</code>.</p>
- </dd>
- <dt id="htmlattrdefwidth">{{htmlattrdef("width")}}</dt>
- <dd>
- <p>Valid for the <code>image</code> input button only, the <code>width</code> is the width of the image file to display to represent the graphical submit button. See the {{HTMLElement("input/image", "image")}} input type.</p>
- </dd>
-</dl>
-
-<h3 id="Non-standard_attributes">Non-standard attributes</h3>
-
-<p>The following non-standard attributes are also available on some browsers. As a general rule, you should avoid using them unless it can't be helped.</p>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Attribute</th>
- <th scope="col">Description</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td><code>{{anch("autocorrect")}}</code></td>
- <td>A string indicating whether or not autocorrect is <code>on</code> or <code>off</code>. <strong>Safari only.</strong></td>
- </tr>
- <tr>
- <td><code>{{anch("incremental")}}</code></td>
- <td>Whether or not to send repeated {{domxref("HTMLInputElement/search_event", "search")}} events to allow updating live search results while the user is still editing the value of the field. <strong>WebKit and Blink only (Safari, Chrome, Opera, etc.).</strong></td>
- </tr>
- <tr>
- <td><code>{{anch("mozactionhint")}}</code></td>
- <td>A string indicating the type of action that will be taken when the user presses the <kbd>Enter</kbd> or <kbd>Return</kbd> key while editing the field; this is used to determine an appropriate label for that key on a virtual keyboard. <strong>Firefox for Android only</strong>.</td>
- </tr>
- <tr>
- <td><code>{{anch("orient")}}</code></td>
- <td>Sets the orientation of the range slider. <strong>Firefox only</strong>.</td>
- </tr>
- <tr>
- <td><code>{{anch("results")}}</code></td>
- <td>The maximum number of items that should be displayed in the drop-down list of previous search queries. <strong>Safari only.</strong></td>
- </tr>
- <tr>
- <td><code>{{anch("webkitdirectory")}}</code></td>
- <td>A Boolean indicating whether or not to only allow the user to choose a directory (or directories, if <code>{{anch("multiple")}}</code> is also present)</td>
- </tr>
- </tbody>
-</table>
-
-<dl>
- <dt>{{htmlattrdef("autocorrect")}} {{non-standard_inline}}</dt>
- <dd>{{page("/en-US/docs/Web/HTML/Element/input/text", "autocorrect-include")}}</dd>
- <dt>{{htmlattrdef("incremental")}} {{non-standard_inline}}</dt>
- <dd>{{page("/en-US/docs/Web/HTML/Element/input/search", "incremental-include")}}</dd>
- <dt>{{htmlattrdef("mozactionhint")}} {{non-standard_inline}}</dt>
- <dd>{{page("/en-US/docs/Web/HTML/Element/input/text", "mozactionhint-include")}}</dd>
- <dt>{{htmlattrdef("orient")}} {{non-standard_inline}}</dt>
- <dd>{{page("/en-US/docs/Web/HTML/Element/input/range", "orient-include")}}</dd>
- <dt>{{htmlattrdef("results")}} {{non-standard_inline}}</dt>
- <dd>{{page("/en-US/docs/Web/HTML/Element/input/search", "results-include")}}</dd>
- <dt>{{htmlattrdef("webkitdirectory")}} {{non-standard_inline}}</dt>
- <dd>{{page("/en-US/docs/Web/HTML/Element/input/file", "webkitdirectory-include")}}</dd>
-</dl>
-
-<h2 id="Methods">Methods</h2>
-
-<p>The following methods are provided by the {{domxref("HTMLInputElement")}} interface which represents <code>&lt;input&gt;</code> elements in the DOM. Also available are those methods specified by the parent interfaces, {{domxref("HTMLElement")}}, {{domxref("Element")}}, {{domxref("Node")}}, and {{domxref("EventTarget")}}.</p>
-
-<dl>
- <dt>{{domxref("HTMLInputElement.checkValidity", "checkValidity()")}}</dt>
- <dd>Immediately runs the validity check on the element, triggering the document to fire the {{domxref("HTMLInputElement.invalid_event", "invalid")}} event at the element if the value isn't valid.</dd>
- <dt>{{domxref("HTMLFormElement.reportValidity", "reportValidity()")}}</dt>
- <dd>Returns <code>true</code> if the element's value passes validity checks; otherwise, returns <code>false</code>.</dd>
- <dt>{{domxref("HTMLInputElement.select", "select()")}}</dt>
- <dd>Selects the entire content of the <code>&lt;input&gt;</code> element, if the element's content is selectable. For elements with no selectable text content (such as a visual color picker or calendar date input), this method does nothing.</dd>
- <dt>{{domxref("HTMLInputElement.setCustomValidity", "setCustomValidity()")}}</dt>
- <dd>Sets a custom message to display if the input element's value isn't valid.</dd>
- <dt>{{domxref("HTMLInputElement.setRangeText", "setRangeText()")}}</dt>
- <dd>Sets the contents of the specified range of characters in the input element to a given string. A <code>selectMode</code> parameter is available to allow controlling how the existing content is affected.</dd>
- <dt>{{domxref("HTMLInputElement.setSelectionRange", "setSelectionRange()")}}</dt>
- <dd>Selects the specified range of characters within a textual input element. Does nothing for inputs which aren't presented as text input fields.</dd>
- <dt>{{domxref("HTMLInputElement.stepDown", "stepDown()")}}</dt>
- <dd>Decrements the value of a numeric input by one, by default, or by the specified number of units.</dd>
- <dt>{{domxref("HTMLInputElement.stepUp", "stepUp()")}}</dt>
- <dd>Increments the value of a numeric input by one or by the specified number of units.</dd>
-</dl>
-
-<h2 id="CSS">CSS</h2>
-
-<p>Inputs, being replaced elements, have a few features not applicable to non form elements. There are CSS selectors that can specification target form controls based on their UI features, also known as UI pseudo-classes. The input element can also be targeted by type with attribute selectors. There are some properties that are especially useful as well.</p>
-
-<h3 id="UI_pseudo-classes">UI pseudo-classes</h3>
-
-<table class="standard-table">
- <caption>Captions super relevant to the {{htmlelement("input")}} element:</caption>
- <thead>
- <tr>
- <th>Pseudo-class</th>
- <th>Description</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{Cssxref(":enabled")}}</td>
- <td>Any currently enabled element that can be activated (selected, clicked on, typed into, etc.) or accept focus and also has a disabled state, in which it can't be activated or accept focus.</td>
- </tr>
- <tr>
- <td>{{Cssxref(":disabled")}}</td>
- <td>Any currently disabled element that has an enabled state, meaing it otherwise could be activated (selected, clicked on, typed into, etc.) or accept focus were it not disabled.</td>
- </tr>
- <tr>
- <td>{{Cssxref(":read-only")}}</td>
- <td>Element not editable by the user</td>
- </tr>
- <tr>
- <td>{{Cssxref(":read-write")}}</td>
- <td>Element that is editable by the user.</td>
- </tr>
- <tr>
- <td>{{Cssxref(":placeholder-shown")}}</td>
- <td>Element that is currently displaying <a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-placeholder">placeholder text</a>, including {{HTMLElement("input")}} and {{HTMLElement("textarea")}} elements with the {{anch('htmlattrdefplaceholder', 'placeholder')}} attribute present that has, as of yet, no value.</td>
- </tr>
- <tr>
- <td>{{Cssxref(":default")}}</td>
- <td>Form elements that are the default in a group of related elements. Matches {{HTMLElement("input/checkbox", "checkbox")}} and {{HTMLElement("input/radio", "radio")}} input types that were checked on page load or render.</td>
- </tr>
- <tr>
- <td>{{Cssxref(":checked")}}</td>
- <td>Matches {{HTMLElement("input/checkbox", "checkbox")}} and {{HTMLElement("input/radio", "radio")}} input types that are currently checked (and the ({{HTMLElement("option")}} in a {{HTMLElement("select")}} that is currently selected).</td>
- </tr>
- <tr>
- <td>{{Cssxref(":indeterminate")}}</td>
- <td>{{HTMLElement("input/checkbox", "checkbox")}} elements whose indeterminate property is set to true by JavaScript, {{HTMLElement("input/radio", "radio")}} elements, when all radio buttons with the same name value in the form are unchecked, and {{HTMLElement("progress")}} elements in an indeterminate state</td>
- </tr>
- <tr>
- <td>{{Cssxref(":valid")}}</td>
- <td>Form controls that can have constraint validation applied and are currently valid.</td>
- </tr>
- <tr>
- <td>{{Cssxref(":invalid")}}</td>
- <td>Form controls that have constraint validation applied and are currently not valid. Matches a form control whose value doesn't match the constraints set on it by it's attributes, such as {{anch('htmlattrdefrequired', 'required')}}, {{anch('htmlattrdefpattern', 'pattern')}} , {{anch('htmlattrdefstep', 'step')}} and {{anch('htmlattrdefmax', 'max')}}.</td>
- </tr>
- <tr>
- <td>{{Cssxref(":in-range")}}</td>
- <td>A non-empty input whose current value is within the range limits specified by the {{anch('htmlattrdefmin', 'min')}} and {{anch('htmlattrdefmax', 'max')}} attributes and the {{anch('htmlattrdefstep', 'step')}} .</td>
- </tr>
- <tr>
- <td>{{Cssxref(":out-of-range")}}</td>
- <td>A non-empty input whose current value is NOT within the range limits specified by the {{anch('htmlattrdefmin', 'min')}} and {{anch('htmlattrdefmax', 'max')}} attributes or does not adher to the {{anch('htmlattrdefstep', 'step')}} constraint.</td>
- </tr>
- <tr>
- <td>{{Cssxref(":required")}}</td>
- <td>{{HTMLElement("input")}}, {{HTMLElement("select")}}, or {{HTMLElement("textarea")}} element that has the {{ htmlattrxref("required", "input")}} attribute set on it. Only matches elements that can be required. The attribute included on a non-requirable element will not make for a match.</td>
- </tr>
- <tr>
- <td>{{Cssxref(":optional")}}</td>
- <td>{{HTMLElement("input")}}, {{HTMLElement("select")}}, or {{HTMLElement("textarea")}} element that does NOT have the {{ htmlattrxref("required", "input")}} attribute set on it. Does not match elements that can't be required.</td>
- </tr>
- <tr>
- <td>{{Cssxref(":blank")}}</td>
- <td>{{HTMLElement("input")}} and {{HTMLElement("textarea")}} elements that currently have no value.</td>
- </tr>
- <tr>
- <td>{{Cssxref(":user-invalid")}}</td>
- <td>Similar to <code>:invalid</code>, but is activated on blur. Matches invalid input but only after the user interaction, such as by focusing on the control, leaving the control, or attempting to submit the form containing the invalid control.</td>
- </tr>
- </tbody>
-</table>
-
-<h4 id="Examples">Examples</h4>
-
-<p>We can style a checkbox label based on whether the checkbox is checked or not. In this example, we are styling the {{cssxref('color')}} and {{cssxref('font-weight')}} of the {{htmlelement('label')}} that comes immediately after a checked input. We haven't applied any styles if the <code>input</code> is not checked.</p>
-
-<div id="checkbox_label">
-<pre class="brush: html hidden notranslate">&lt;input id="checkboxInput" type="checkbox"&gt;
-&lt;label for="checkboxInput"&gt;Toggle the checkbox on and off&lt;/label&gt;
-</pre>
-
-<pre class="brush: css notranslate">input:checked + label {
- color: red;
- font-weight: bold;
-}
-</pre>
-
-<p>{{EmbedLiveSample('checkbox_label', 500, 80)}}</p>
-</div>
-
-<h3 id="Attribute_selectors">Attribute selectors</h3>
-
-<p>It is possible to target different types of form controls based on their {{anch('htmlattrdeftype', 'type')}} using <a href="/en-US/docs/Learn/CSS/Building_blocks/Selectors/Attribute_selectors">attribute selectors</a>. CSS attribute selectors match elements based on either just the presence of a attribute or the value of a given attribute.</p>
-
-<pre class="brush: css notranslate">/* matches a password input */
-input[type="password"] {}
-
-/* matches a form control whose valid values are limited to a range of values*/
-input[min][max] {}
-
-/* matches a form control with with a pattern attribute */
- input[pattern] {}</pre>
-
-<h3 id="placeholder">::placeholder</h3>
-
-<p>By default, the appearance of placeholder text is a translucent or light gray. The {{cssxref('::placeholder')}} pseudo-element is the input's <a href="/en-US/docs/Web/HTML/Forms_in_HTML#The_placeholder_attribute">placeholder text</a>. It can be styled with a limited subset of CSS properties.</p>
-
-<pre class="brush: css no-line-numbers notranslate">::placeholder {
- color: blue;
-}</pre>
-
-<p>Only the subset of CSS properties that apply to the {{cssxref("::first-line")}} pseudo-element can be used in a rule using <code>::placeholder</code> in its selector.</p>
-
-<h3 id="appearance">appearance</h3>
-
-<p>The {{cssxref("appearance")}} property enables the displaying of (almost) any element as a platform-native style based on the operating system's theme as well as the removal of any platform-native styling with the <code>none</code> value.</p>
-
-<p>You could make a <code>&lt;div&gt;</code> look like a radio button with <code>div {appearance: radio;} </code>or a radio look like a checkbox with <code>[type="checkbox] {appearance: checkbox;}</code>, but don't.</p>
-
-<p>Setting <code>appearance: none</code> removes platform native borders, but not functionality.</p>
-
-<h3 id="caret-color">caret-color</h3>
-
-<p>A property specific to text entry-related elements is the CSS {{cssxref("caret-color")}} property, which lets you set the color used to draw the text input caret:</p>
-
-<h4 id="HTML">HTML</h4>
-
-<pre class="brush: html notranslate">&lt;label for="textInput"&gt;Note the red caret:&lt;/label&gt;
-&lt;input id="textInput" class="custom" size="32"&gt;
-</pre>
-
-<h4 id="CSS_2">CSS</h4>
-
-<pre class="brush: css notranslate">input.custom {
- caret-color: red;
- font: 16px "Helvetica", "Arial", "sans-serif"
-}
-</pre>
-
-<h4 id="Result">Result</h4>
-
-<p>{{EmbedLiveSample('caret-color', 500, 80)}}</p>
-
-<h3 id="object-position_and_object-fit">object-position and object-fit</h3>
-
-<p>In certain cases (typically involving non-textual inputs and specialized interfaces), the <code>&lt;input&gt;</code> element is a <a href="/en-US/docs/Web/CSS/Replaced_element">replaced element</a>. When it is, the position and size of the element's size and positioning within its frame can be adjusted using the CSS {{cssxref("object-position")}} and {{cssxref("object-fit")}} properties</p>
-
-<h3 id="Styling">Styling</h3>
-
-<p>For more information about adding color to elements in HTML, see:</p>
-
-<ul>
- <li><a href="/en-US/docs/Web/HTML/Applying_color">Applying color to HTML elements using CSS</a>.</li>
-</ul>
-
-<p>Also see:</p>
-
-<ul>
- <li><a href="/en-US/docs/Learn/HTML/Forms/Styling_HTML_forms">Styling HTML forms,</a> <a href="/en-US/docs/Learn/HTML/Forms/Advanced_styling_for_HTML_forms">advanced styling for HTML forms</a>, and</li>
- <li>the<a href="/en-US/docs/Learn/HTML/Forms/Property_compatibility_table_for_form_widgets"> compatibility table of CSS properties</a>.</li>
-</ul>
-
-<h2 id="Additional_features">Additional features</h2>
-
-<h3 id="Labels">Labels</h3>
-
-<p>Labels are needed to associate assistive text with an <code>&lt;input&gt;</code>. The {{HTMLElement("label")}} element provides explanatory information about a form field that is <em>always</em> appropriate (aside from any layout concerns you have). It's never a bad idea to use a <code>&lt;label&gt;</code> to explain what should be entered into an <code>&lt;input&gt;</code> or {{HTMLElement("textarea")}}.</p>
-
-<h4 id="Associated_labels">Associated labels</h4>
-
-<p>The semantic pairing of <code>&lt;input&gt;</code> and <code>&lt;label&gt;</code> elements is useful for assistive technologies such as screen readers. By pairing them using the <code>&lt;label&gt;</code>'s {{htmlattrxref("for", "label")}} attribute, you bond the label to the input in a way that lets screen readers describe inputs to users more precisely.</p>
-
-<p>It does not suffice to have plain text adjacent to the <code>&lt;input&gt;</code> element,. Rather, usability and accessibility requires the inclusion of either implicit or explicit {{HTMLElement("label")}}:</p>
-
-<pre class="brush: html notranslate">&lt;!-- inaccessible --&gt;
-&lt;p&gt;Enter your name: &lt;input id="name" type="text" size="30"&gt;&lt;/p&gt;
-
-&lt;!-- implicit label --&gt;
-&lt;p&gt;&lt;label&gt;Enter your name: &lt;input id="name" type="text" size="30"&gt;&lt;/label&gt;&lt;/p&gt;
-
-&lt;!-- explicit label --&gt;
-&lt;p&gt;&lt;label for="name"&gt;Enter your name: &lt;/label&gt;&lt;input id="name" type="text" size="30"&gt;&lt;/p&gt;</pre>
-
-<p>The first example is inaccessible: no relationship exists between the prompt and the <code>&lt;input&gt;</code> element.</p>
-
-<p>In addition to an accessible name, the label provides a larger 'hit' area for mouse and touch screen users to click on or touch. By pairing a <code>&lt;label&gt;</code> with an <code>&lt;input&gt;</code>, clicking on either one will focus the <code>&lt;input&gt;</code>. If you use plain text to "label" your input, this won't happen. Having the prompt part of the activation area for the input is helpful for people with motor control conditions.</p>
-
-<p>As web developers, it's important that we never assume that people will know all the things that we know. The diversity of people using the web—and by extension your web site—practically guarantees that some of your site's visitors will have some variation in thought processes and/or circumstances that leads them to interpret your forms very differently from you without clear and properly-presented labels.</p>
-
-<h4 id="Placeholders_are_not_accessible">Placeholders are not accessible</h4>
-
-<p>The {{htmlattrxref("placeholder", "input")}} attribute lets you specify text that appears within the <code>&lt;input&gt;</code> element's content area itself when it is empty. The placeholder should never be required in order to understand your forms. It is not a label, and should not be used as a substitute, because it isn't. The placeholder is used to provide a hint as to what an inputted value should look like, not an explanation or prompt.</p>
-
-<p>Not only is the placeholder not accessible to screen readers, but once the user enters any text into the form control, or if the form control already has a value, the placeholder disappears. Browsers with automatic page translation features may skip over attributes when translating, meaning the <code>placeholder</code> may not get translated.</p>
-
-<div class="blockIndicator note">
-<p>Don't use the {{htmlattrxref("placeholder", "input")}} attribute if you can avoid it. If you need to label an <code>&lt;input&gt;</code> element, use the {{HTMLElement("label")}} element.</p>
-</div>
-
-<h3 id="Client-side_validation">Client-side validation</h3>
-
-<div class="blockIndicator warning">
-<p><strong>Warning:</strong> Client-side validation is useful, but it does <em>not</em> guarantee that the server will receive valid data. If the data must be in a specific format, <em>always</em> verify it also on the server-side, and return a <a href="/en-US/docs/Web/HTTP/Status/400"><code>400</code> HTTP response</a> if the format is invalid.</p>
-</div>
-
-<p>In addition to using CSS to style inputs based on the {{cssxref(":valid")}} or {{cssxref(":invalid")}} UI states based on the current state of each input, as noted in the {{anch('UI pseudo-classes')}} section above, the browser provides for client-side validation on (attempted) form submission. On form submission, if there is a form control that fails constraint validation, supporting browsers will display an error message on the first invalid form control; displaying a default message based on the error type, or a message set by you.</p>
-
-<p>Some input types and other attributes place limits on what values are valid for a given input. For example, <code>&lt;input type="number" min="2" max="10" step="2"&gt;</code> means only the number 2, 4, 6, 8, or 10 are valid. Several errors could occur, including a <code>rangeUnderflow</code> error if the value is less than 2, <code>rangeOverflow</code> if greater than 10, <code>stepMismatch</code> if the value is a number between 2 and 10, but not an even integer (does not match the requirements of the <code>step</code> attribute), or <code>typeMismatch</code> if the value is not a number.</p>
-
-<p>For the input types whose domain of possible values is periodic (that is, at the highest possible value, the values wrap back around to the beginning rather than ending), it's possible for the values of the {{htmlattrxref("max")}} and {{htmlattrxref("min")}} properties to be reversed, which indicates that the range of permitted values starts at <code>min</code>, wraps around to the lowest possible value, then continues on until <code>max</code> is reached. This is particularly useful for dates and times, such as when you want to allow the range to be from 8 PM to 8 AM:</p>
-
-<pre class="brush: html notranslate">&lt;input type="time" min="20:00" max="08:00" name="overnight"&gt;</pre>
-
-<p>Specific attributes and their values can lead to a specific error {{domxref('ValidityState')}}:</p>
-
-<table class="standard-table">
- <caption>Validity object errors depend on the {{htmlelement('input')}} attributes and their values:</caption>
- <thead>
- <tr>
- <th scope="col">Attribute</th>
- <th scope="col">Relevent property</th>
- <th scope="col">Description</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{anch('htmlattrdefmax', 'max')}}</td>
- <td>{{domxref('validityState.rangeOverflow')}}</td>
- <td>Occurs when the value is greater than the maximum value as defined by the <code>max</code> attribute</td>
- </tr>
- <tr>
- <td>{{anch('htmlattrdefmaxlength', 'maxlength')}}</td>
- <td>{{domxref('validityState.tooLong')}}</td>
- <td>Occurs when the number of characters is greater than the number allowed by the <code>maxlength</code> property</td>
- </tr>
- <tr>
- <td>{{anch('htmlattrdefmin', 'min')}}</td>
- <td>{{domxref('validityState.rangeUnderflow')}}</td>
- <td>Occurs when the value is less than the minimum value as defined by the <code>min</code> attribute</td>
- </tr>
- <tr>
- <td>{{anch('htmlattrdefminlength', 'minlength')}}</td>
- <td>{{domxref('validityState.tooShort')}}</td>
- <td>Occurs when the number of characters is less than the number required by the <code>minlength</code> property</td>
- </tr>
- <tr>
- <td>{{anch('htmlattrdefpattern', 'pattern')}}</td>
- <td>{{domxref('validityState.patternMismatch')}}</td>
- <td>Occurs when a pattern attribute is included with a valid regular expression and the <code>value</code> does not match it.</td>
- </tr>
- <tr>
- <td>{{anch('htmlattrdefrequired', 'required')}}</td>
- <td>{{domxref('validityState.valueMissing')}}</td>
- <td>Occurs when the <code>required</code> attribute is present but the value is <code>null</code> or radio or checkbox is not checked.</td>
- </tr>
- <tr>
- <td>{{anch('htmlattrdefstep', 'step')}}</td>
- <td>{{domxref('validityState.stepMismatch')}}</td>
- <td>The value doesn't match the step increment. Increment default is <code>1</code>, so only integers are valid on<code> type="number"</code> is step is not included. <code>step="any"</code> will never throw this error.</td>
- </tr>
- <tr>
- <td>{{anch('htmlattrdeftyoe', 'type')}}</td>
- <td>{{domxref('validityState.typeMismatch')}}</td>
- <td>Occurs when the value is not of the correct type, for example a email does not contain an <code>@</code> or a url doesn't contain a protocol.</td>
- </tr>
- </tbody>
-</table>
-
-<p>If a form control doesn't have the <code>required</code> attribute, no value, or an empty string, is not invalid. Even if the above attributes are present, with the exception of <code>required</code>, and empty string will not lead to an error.</p>
-
-<p>We can set limits on what values we accept, and supporting browsers will natively validate these form values and alert the user if there is a mistake when the form is submitted.</p>
-
-<p>In addition to the errors described in the table above, the <code>validityState</code> interface contains the <code>badInput</code>, <code>valid</code>, and <code>customError</code> boolean readonly properties. The validity object includes:</p>
-
-<ul>
- <li>{{domxref('validityState.valueMissing')}}</li>
- <li>{{domxref('validityState.typeMismatch')}}</li>
- <li>{{domxref('validityState.patternMismatch')}}</li>
- <li>{{domxref('validityState.tooLong')}}</li>
- <li>{{domxref('validityState.tooShort')}}</li>
- <li>{{domxref('validityState.rangeUnderflow')}}</li>
- <li>{{domxref('validityState.rangeOverflow')}}</li>
- <li>{{domxref('validityState.stepMismatch')}}</li>
- <li>{{domxref('validityState.badInput')}}</li>
- <li>{{domxref('validityState.valid')}}</li>
- <li>{{domxref('validityState.customError')}}</li>
-</ul>
-
-<p>For each of these Boolean properties, a value of <code>true</code> indicates that the specified reason validation may have failed is true, with the exception of the <code>valid</code> property, which is <code>true</code> if the element's value obeys all constraints.</p>
-
-<p>If there is an error, supporting browsers will both alert the user and prevent the form from being submitted. A word of caution: if a custom error is set to a truthy value (anything other than the empty string or <code>null</code>), the form will be be prevented from being submitted. If there is no custom error message, and none of the other properties return true, <code>valid</code> will be true, and the form can be submitted.</p>
-
-<pre class="brush: js notranslate">function validate(input) {
- let validityState_object = input.validity;
- if(validityState_object.valueMissing) {
- input.setCustomValidity('A value is required');
- } else if (input.rangeUnderflow) {
- input.setCustomValidity('Your value is too low');
- } else if (input.rangeOverflow) {
- input.setCustomValidity('Your value is too high');
- } else {
- input.setCustomValidity('');
- }
-}</pre>
-
-<p>The last line, setting the custom validity message to the error string is vital. If the user makes an error, and the validity is set, it will fail to submit, even if all of the values are valid, until the message is <code>null</code>.</p>
-
-<h4 id="Example">Example</h4>
-
-<p>If you want to present a custom error message when a field fails to validate, you need to use the <a href="/en-US/docs/Web/API/Constraint_validation#Constraint_validation_interfaces">Constraint validation features</a> available on <code>&lt;input&gt;</code> (and related) elements. Take the following form:</p>
-
-<pre class="brush: html notranslate">&lt;form&gt;
- &lt;label for="name"&gt;Enter username (upper and lowercase letters): &lt;/label&gt;
- &lt;input type="text" name="name" id="name" required pattern="[A-Za-z]+"&gt;
- &lt;button&gt;Submit&lt;/button&gt;
-&lt;/form&gt;</pre>
-
-<p>The basic HTML form validation features will cause this to produce a default error message if you try to submit the form with either no valid filled in, or a value that does not match the <code>pattern</code>.</p>
-
-<p>If you wanted to instead display custom error messages, you could use JavaScript like the following:</p>
-
-<pre class="brush: js notranslate">const nameInput = document.querySelector('input');
-const form = document.querySelector('form');
-
-nameInput.addEventListener('input', () =&gt; {
- nameInput.setCustomValidity('');
- nameInput.checkValidity();
-});
-
-nameInput.addEventListener('invalid', () =&gt; {
- if(nameInput.value === '') {
- nameInput.setCustomValidity('Enter your username!');
- } else {
- nameInput.setCustomValidity('Usernames can only contain upper and lowercase letters. Try again!');
- }
-});</pre>
-
-<p>The example renders like so:</p>
-
-<p>{{EmbedLiveSample('Client-side_validation')}}</p>
-
-<p>In brief:</p>
-
-<ul>
- <li>We check the valid state of the input element every time its value is changed by running the <code>checkValidity()</code> method via the <code>input</code> event handler.</li>
- <li>If the value is invalid, an <code>invalid</code> event is raised, and the <code>invalid</code> event handler function is run. Inside this function we work out whether the value is invalid because it is empty, or because it doesn't match the pattern, using an <code>if()</code> block, and set a custom validity error message.</li>
- <li>As a result, if the input value is invalid when the submit button is pressed, one of the custom error messages will be shown.</li>
- <li>If it is valid, it will submit as you'd expect. For this to happen, the custom validity has to be cancelled, by invoking <code>setCustomValidity()</code> with an empty string value. We therefore do this every time the <code>input</code> event is raised. If you don't do this, and a custom validity was previously set, the input will register as invalid, even if it current contains a valid value on submission.</li>
-</ul>
-
-<div class="blockIndicator note">
-<p><strong>Note:</strong> Always validate input constraints both client side and server side. Constraint validation doesn't remove the need for validation on the <em>server side</em>. Invalid values can still be sent by older browsers or by bad actors.</p>
-</div>
-
-<div class="blockIndicator note">
-<p><strong>Note</strong>: Firefox supported a proprietary error attribute — <code>x-moz-errormessage</code> — for many versions, which allowed you set custom error messages in a similar way. This has been removed as of version 66 (see {{bug(1513890)}}).</p>
-</div>
-
-<h3 id="Localization">Localization</h3>
-
-<p>The allowed inputs for certain <code>&lt;input&gt;</code> types depend on the locale. In some locales, 1,000.00 is a valid number, while in other locales the valid way to enter this number is 1.000,00.</p>
-
-<p>Firefox uses the following heuristics to determine the locale to validate the user's input (at least for <code>type="number"</code>):</p>
-
-<ul>
- <li>Try the language specified by a <code>lang</code>/<code>xml:lang</code> attribute on the element or any of its parents.</li>
- <li>Try the language specified by any <code>Content-Language</code> HTTP header. Or,</li>
- <li>If none specified, use the browser's locale.</li>
-</ul>
-
-<h3 id="Technical_summary">Technical summary</h3>
-
-<table class="properties">
- <tbody>
- <tr>
- <th scope="row"><a href="/en-US/docs/Web/HTML/Content_categories">Content categories</a></th>
- <td><a href="/en-US/docs/Web/HTML/Content_categories#Flow_content">Flow content</a>, listed, submittable, resettable, form-associated element, <a href="/en-US/docs/Web/HTML/Content_categories#Phrasing_content">phrasing content</a>. If the {{htmlattrxref("type", "input")}} is not <code>hidden</code>, then labelable element, palpable content.</td>
- </tr>
- <tr>
- <th scope="row">Permitted content</th>
- <td>None, it is an {{Glossary("empty element")}}.</td>
- </tr>
- <tr>
- <th scope="row">Tag omission</th>
- <td>Must have a start tag and must not have an end tag.</td>
- </tr>
- <tr>
- <th scope="row">Permitted parents</th>
- <td>Any element that accepts <a href="/en-US/docs/Web/HTML/Content_categories#Phrasing_content">phrasing content</a>.</td>
- </tr>
- <tr>
- <th scope="row">Implicit ARIA role</th>
- <td>
- <ul>
- <li><code>type=button</code>: <code><a href="/en-US/docs/Web/Accessibility/ARIA/Roles/button_role">button</a></code></li>
- <li><code>type=checkbox</code>: <code><a href="/en-US/docs/Web/Accessibility/ARIA/Roles/checkbox_role">checkbox</a></code></li>
- <li><code>type=email</code>
- <ul>
- <li>with no <code>list</code> attribute: <code><a href="/en-US/docs/Web/Accessibility/ARIA/Roles/textbox_role">textbox</a></code></li>
- <li>with <code>list</code> attribute: {{ARIARole("combobox")}}</li>
- </ul>
- </li>
- <li><code>type=image</code>: <code><a href="/en-US/docs/Web/Accessibility/ARIA/Roles/button_role">button</a></code></li>
- <li><code>type=number</code>: {{ARIARole("spinbutton")}}</li>
- <li><code>type=radio</code>: {{ARIARole("radio")}}</li>
- <li><code>type=range</code>: {{ARIARole("slider")}}</li>
- <li><code>type=reset</code>: <code><a href="/en-US/docs/Web/Accessibility/ARIA/Roles/button_role">button</a></code></li>
- <li><code>type=search</code>
- <ul>
- <li>with no <code>list</code> attribute: {{ARIARole("searchbox")}}</li>
- <li>with <code>list</code> attribute: {{ARIARole("combobox")}}</li>
- </ul>
- </li>
- <li><code>type=submit</code>: <code><a href="/en-US/docs/Web/Accessibility/ARIA/Roles/button_role">button</a></code></li>
- <li><code>type=tel</code>
- <ul>
- <li>with no <code>list</code> attribute: <code><a href="/en-US/docs/Web/Accessibility/ARIA/Roles/textbox_role">textbox</a></code></li>
- <li>with <code>list</code> attribute: {{ARIARole("combobox")}}</li>
- </ul>
- </li>
- <li><code>type=text</code>
- <ul>
- <li>with no <code>list</code> attribute: <code><a href="/en-US/docs/Web/Accessibility/ARIA/Roles/textbox_role">textbox</a></code></li>
- <li>with <code>list</code> attribute: {{ARIARole("combobox")}}</li>
- </ul>
- </li>
- <li><code>type=url</code>
- <ul>
- <li>with no <code>list</code> attribute: <code><a href="/en-US/docs/Web/Accessibility/ARIA/Roles/textbox_role">textbox</a></code></li>
- <li>with <code>list</code> attribute: {{ARIARole("combobox")}}</li>
- </ul>
- </li>
- <li><code>type=color|date|datetime-local|file|hidden|month|password|time|week</code>: <a href="https://www.w3.org/TR/html-aria/#dfn-no-corresponding-role">no corresponding role</a></li>
- </ul>
- </td>
- </tr>
- <tr>
- <th scope="row">Permitted ARIA roles</th>
- <td>
- <ul>
- <li><code>type=button</code>: {{ARIARole("link")}}, {{ARIARole("menuitem")}}, {{ARIARole("menuitemcheckbox")}}, {{ARIARole("menuitemradio")}}, {{ARIARole("option")}}, {{ARIARole("radio")}}, {{ARIARole("switch")}}, {{ARIARole("tab")}}</li>
- <li><code>type=checkbox</code>: {{ARIARole("button")}} when used with <code>aria-pressed</code>, {{ARIARole("menuitemcheckbox")}}, {{ARIARole("option")}}, {{ARIARole("switch")}}</li>
- <li><code>type=image</code>: {{ARIARole("link")}}, {{ARIARole("menuitem")}}, {{ARIARole("menuitemcheckbox")}}, {{ARIARole("menuitemradio")}}, {{ARIARole("radio")}}, {{ARIARole("switch")}}</li>
- <li><code>type=radio</code>: {{ARIARole("menuitemradio")}}</li>
- <li><code>type=text</code> with no <code>list</code> attribute: {{ARIARole("combobox")}}, {{ARIARole("searchbox")}}, {{ARIARole("spinbutton")}}</li>
- <li><code>type=color|date|datetime|datetime-local|email|file|hidden|month|number|password|range|reset|search|submit|tel|url|week</code> or <code>text</code> with <code>list</code> attribute: no <code>role</code> permitted</li>
- </ul>
- </td>
- </tr>
- <tr>
- <th scope="row">DOM interface</th>
- <td>{{domxref("HTMLInputElement")}}</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Specifications">Specifications</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName('HTML WHATWG', 'forms.html#the-input-element', '&lt;input&gt;')}}</td>
- <td>{{Spec2('HTML WHATWG')}}</td>
- <td></td>
- </tr>
- <tr>
- <td>{{SpecName('HTML Media Capture', '#the-capture-attribute','capture attribute')}}</td>
- <td>{{Spec2('HTML Media Capture')}}</td>
- <td>Adds the <code>capture</code> attribute</td>
- </tr>
- <tr>
- <td>{{SpecName('HTML5 W3C', 'sec-forms.html#the-input-element', '&lt;input&gt;')}}</td>
- <td>{{Spec2('HTML5 W3C')}}</td>
- <td></td>
- </tr>
- <tr>
- <td>{{SpecName('HTML4.01', 'interact/forms.html#h-17.4', '&lt;form&gt;')}}</td>
- <td>{{Spec2('HTML4.01')}}</td>
- <td></td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Accessibility_concerns">Accessibility concerns</h2>
-
-<h3 id="Labels_2">Labels</h3>
-
-<p>When including inputs, it is an accessibilty requirement to add labels along side. This is needed so those who use assistive technologies can tell what the input is for. Also, clicking or touching a label gives focus to the label's associated form control. This improves the accessibility and usability for sighted users, increases the area a user can click or touch to activate the form control. this is especially useful (and even needed) for radio buttons and checkboxes, which are tiny. For more information about labels in general see {{anch("Labels")}} .</p>
-
-<p>The following is an example of how to associate the <code>&lt;label&gt;</code> with an <code>&lt;input&gt;</code> element in the above style. You need to give the <code>&lt;input&gt;</code> an <code>id</code> attribute. The <code>&lt;label&gt;</code> then needs a <code>for</code> attribute whose value is the same as the input's <code>id</code>.</p>
-
-<pre class="notranslate">&lt;label for="peas"&gt;Do you like peas?&lt;/label&gt;
-&lt;input type="checkbox" name="peas" id="peas"&gt;
-</pre>
-
-<h3 id="Size">Size</h3>
-
-<p>Interactive elements such as form input should provide an area large enough that it is easy to activate them. This helps a variety of people, including people with motor control issues and people using non-precise forms of input such as a stylus or fingers. A minimum interactive size of 44×44 <a href="https://www.w3.org/TR/WCAG21/#dfn-css-pixels">CSS pixels</a> is recommended.</p>
-
-<ul>
- <li><a href="https://www.w3.org/WAI/WCAG21/Understanding/target-size.html">Understanding Success Criterion 2.5.5: Target Size | W3C Understanding WCAG 2.1</a></li>
- <li><a href="http://adrianroselli.com/2019/06/target-size-and-2-5-5.html">Target Size and 2.5.5 | Adrian Roselli</a></li>
- <li><a href="https://a11yproject.com/posts/large-touch-targets/">Quick test: Large touch targets - The A11Y Project</a></li>
-</ul>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-
-
-<div>{{Compat("html.elements.input")}}</div>
-
-<h2 id="See_also">See also</h2>
-
-<ul>
- <li><a href="/en-US/docs/Web/Guide/HTML/HTML5/Constraint_validation">Form constraint validation</a></li>
- <li><a href="/en-US/docs/Learn/HTML/Forms/Your_first_HTML_form">Your first HTML form</a></li>
- <li><a href="/en-US/docs/Learn/HTML/Forms/How_to_structure_an_HTML_form">How to structure an HTML form</a></li>
- <li><a href="/en-US/docs/Learn/HTML/Forms/The_native_form_widgets">The native form widgets</a></li>
- <li><a href="/en-US/docs/Learn/HTML/Forms/Sending_and_retrieving_form_data">Sending form data</a></li>
- <li><a href="/en-US/docs/Learn/HTML/Forms/Form_validation">Form data validation</a></li>
- <li><a href="/en-US/docs/Learn/HTML/Forms/How_to_build_custom_form_widgets">How to build custom form widgets</a></li>
- <li><a href="/en-US/docs/Learn/HTML/Forms/HTML_forms_in_legacy_browsers">HTML forms in legacy browsers</a></li>
- <li><a href="/en-US/docs/Learn/HTML/Forms/Styling_HTML_forms">Styling HTML forms</a></li>
- <li><a href="/en-US/docs/Learn/HTML/Forms/Advanced_styling_for_HTML_forms">Advanced styling for HTML forms</a></li>
- <li><a href="/en-US/docs/Learn/HTML/Forms/Property_compatibility_table_for_form_widgets">CSS property compatibility table</a></li>
-</ul>
diff --git a/files/ar/web/html/element/input/radio/index.html b/files/ar/web/html/element/input/radio/index.html
deleted file mode 100644
index cad8bda10b..0000000000
--- a/files/ar/web/html/element/input/radio/index.html
+++ /dev/null
@@ -1,356 +0,0 @@
----
-title: <input type="radio">
-slug: Web/HTML/Element/input/radio
-translation_of: Web/HTML/Element/input/radio
----
-<div>{{HTMLRef}}</div>
-
-<p><span class="seoSummary">{{htmlelement("input")}} عناصر من النوع<strong><code>radio</code></strong> تستخدم بشكل عام في<strong>radio groups</strong>—مجموعات من أزرار الاختيار تصف مجموعة من الخيارات ذات الصلة. يمكن تحديد زر اختيار واحد فقط في مجموعة معينة في نفس الوقت. عادةً ما يتم عرض أزرار الاختيار على شكل دوائر صغيرة ، يتم تعبئتها أو إبرازها عند تحديدها.</span></p>
-
-<div>{{EmbedInteractiveExample("pages/tabbed/input-radio.html", "tabbed-standard")}}</div>
-
-<p class="hidden">يتم تخزين مصدر هذا المثال التفاعلي في مستودع GitHub. إذا كنت ترغب في المساهمة في مشروع الأمثلة التفاعلية ، من فضلك استنساخ<br>
- <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> وأرسل لنا طلب سحب.</p>
-
-<div id="Basic_example">
-<p>يطلق عليها أزرار الراديو لأنها تبدو وتعمل بطريقة مشابهة للأزرار الانضغاطية في أجهزة الراديو القديمة ، مثل تلك الموضحة أدناه.</p>
-
-<p><img alt="Shows what radio buttons looked like in the olden days." src="https://mdn.mozillademos.org/files/15610/old-radio.jpg" style="height: 400px; width: 600px;" title="Photo of an old-time radio"></p>
-</div>
-
-<div class="note">
-<p><strong>Note</strong>:تشبه مربعات الاختيار أزرار الاختيار ، ولكن مع تمييز مهم: أزرار الاختيار مصممة لتحديد قيمة واحدة من مجموعة ، بينما تتيح لك مربعات الاختيار تشغيل وإيقاف القيم الفردية. في حالة وجود عناصر تحكم متعددة ، تسمح أزرار الاختيار بتحديد واحد منها جميعًا ، بينما تسمح مربعات الاختيار بتحديد قيم متعددة.</p>
-</div>
-
-<table class="properties">
- <tbody>
- <tr>
- <td><strong>{{anch("Value")}}</strong></td>
- <td>A {{domxref("DOMString")}} representing the value of the radio button.</td>
- </tr>
- <tr>
- <td><strong>Events</strong></td>
- <td>{{event("change")}} and {{event("input")}}</td>
- </tr>
- <tr>
- <td><strong>Supported common attributes</strong></td>
- <td><code>checked</code> and <code>value</code></td>
- </tr>
- <tr>
- <td><strong>IDL attributes</strong></td>
- <td><code>{{anch("checked")}}</code> and <code>{{anch("value")}}</code></td>
- </tr>
- <tr>
- <td><strong>Methods</strong></td>
- <td>{{domxref("HTMLInputElement.select", "select()")}}</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Value">Value</h2>
-
-<p>The <code>value</code> attribute is a {{domxref("DOMString")}} containing the radio button's value. The value is never shown to the user by their {{Glossary("user agent")}}. Instead, it's used to identify which radio button in a group is selected.</p>
-
-<h3 id="Defining_a_radio_group">Defining a radio group</h3>
-
-<p>A radio group is defined by giving each of radio buttons in the group the same {{htmlattrxref("name", "input")}}. Once a radio group is established, selecting any radio button in that group automatically deselects any currently-selected radio button in the same group.</p>
-
-<p>You can have as many radio groups on a page as you like, as long as each has its own unique <code>name</code>.</p>
-
-<p>For example, if your form needs to ask the user for their preferred contact method, you might create three radio buttons, each with the <code>name</code> property set to <code>contact</code> but one with the {{htmlattrxref("value", "input")}} <code>email</code>, one with the value <code>phone</code>, and one with the value <code>mail</code>. The user never sees the <code>value</code> or the <code>name</code> (unless you expressly add code to display it).</p>
-
-<p>The resulting HTML looks like this:</p>
-
-<pre class="brush: html notranslate">&lt;form&gt;
- &lt;p&gt;Please select your preferred contact method:&lt;/p&gt;
- &lt;div&gt;
- &lt;input type="radio" id="contactChoice1"
- name="contact" value="email"&gt;
- &lt;label for="contactChoice1"&gt;Email&lt;/label&gt;
-
- &lt;input type="radio" id="contactChoice2"
- name="contact" value="phone"&gt;
- &lt;label for="contactChoice2"&gt;Phone&lt;/label&gt;
-
- &lt;input type="radio" id="contactChoice3"
- name="contact" value="mail"&gt;
- &lt;label for="contactChoice3"&gt;Mail&lt;/label&gt;
- &lt;/div&gt;
- &lt;div&gt;
- &lt;button type="submit"&gt;Submit&lt;/button&gt;
- &lt;/div&gt;
-&lt;/form&gt;</pre>
-
-<p>Here you see the three radio buttons, each with the <code>name</code> set to <code>contact</code> and each with a unique <code>value</code> that uniquely identifies that individual radio button within the group. They each also have a unique {{domxref("Element.id", "id")}}, which is used by the {{HTMLElement("label")}} element's {{htmlattrxref("for", "label")}} attribute to associate the labels with the radio buttons.</p>
-
-<p>You can try out this example here:</p>
-
-<p>{{EmbedLiveSample('Defining_a_radio_group', 600, 130)}}</p>
-
-<h3 id="Data_representation_of_a_radio_group">Data representation of a radio group</h3>
-
-<p>When the above form is submitted with a radio button selected, the form's data includes an entry in the form <code>contact=<var>value</var></code>. For example, if the user clicks on the "Phone" radio button then submits the form, the form's data will include the line <code>contact=phone</code>.</p>
-
-<p>If you omit the <code>value</code> attribute in the HTML, the submitted form data assigns the value <code>on</code> to the group. In this scenario, if the user clicked on the "Phone" option and submitted the form, the resulting form data would be <code>contact=on</code>, which isn't helpful. So don't forget to set your <code>value</code> attributes!</p>
-
-<div class="note">
-<p><strong>Note</strong>: If no radio button is selected when the form is submitted, the radio group is not included in the submitted form data at all, since there is no value to report.</p>
-</div>
-
-<p>It's fairly uncommon to actually want to allow the form to be submitted without any of the radio buttons in a group selected, so it is usually wise to have one default to the <code>checked</code> state. See {{anch("Selecting a radio button by default")}} below.</p>
-
-<p>Let's add a little bit of code to our example so we can examine the data generated by this form. The HTML is revised to add a {{HTMLElement("pre")}} block to output the form data into:</p>
-
-<pre class="brush: html notranslate">&lt;form&gt;
- &lt;p&gt;Please select your preferred contact method:&lt;/p&gt;
- &lt;div&gt;
- &lt;input type="radio" id="contactChoice1"
- name="contact" value="email"&gt;
- &lt;label for="contactChoice1"&gt;Email&lt;/label&gt;
- &lt;input type="radio" id="contactChoice2"
- name="contact" value="phone"&gt;
- &lt;label for="contactChoice2"&gt;Phone&lt;/label&gt;
- &lt;input type="radio" id="contactChoice3"
- name="contact" value="mail"&gt;
- &lt;label for="contactChoice3"&gt;Mail&lt;/label&gt;
- &lt;/div&gt;
- &lt;div&gt;
- &lt;button type="submit"&gt;Submit&lt;/button&gt;
- &lt;/div&gt;
-&lt;/form&gt;
-&lt;pre id="log"&gt;
-&lt;/pre&gt;
-</pre>
-
-<p>Then we add some <a href="/en-US/docs/Web/JavaScript">JavaScript</a> to set up an event listener on the {{domxref("HTMLFormElement/submit_event", "submit")}} event, which is sent when the user clicks the "Submit" button:</p>
-
-<pre class="brush: js notranslate">var form = document.querySelector("form");
-var log = document.querySelector("#log");
-
-form.addEventListener("submit", function(event) {
- var data = new FormData(form);
- var output = "";
- for (const entry of data) {
- output = output + entry[0] + "=" + entry[1] + "\r";
- };
- log.innerText = output;
- event.preventDefault();
-}, false);</pre>
-
-<p>Try this example out and see how there's never more than one result for the <code>contact</code> group.</p>
-
-<p>{{EmbedLiveSample("Data_representation_of_a_radio_group", 600, 130)}}</p>
-
-<h2 id="Additional_attributes">Additional attributes</h2>
-
-<p>In addition to the common attributes shared by all {{HTMLElement("input")}} elements, <code>radio</code> inputs support the following attributes:</p>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Attribute</th>
- <th scope="col">Description</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td><code>{{anch("checked")}}</code></td>
- <td>A Boolean indicating whether or not this radio button is the currently-selected item in the group</td>
- </tr>
- <tr>
- <td><code>{{anch("value")}}</code></td>
- <td>The string to use as the value of the radio when submitting the form, if the radio is currently toggled on</td>
- </tr>
- </tbody>
-</table>
-
-<h3 id="htmlattrdefchecked">{{htmlattrdef("checked")}}</h3>
-
-<p>A Boolean attribute which, if present, indicates that this radio button is the currently selected one in the group.</p>
-
-<p>Unlike other browsers, Firefox by default <a href="https://stackoverflow.com/questions/5985839/bug-with-firefox-disabled-attribute-of-input-not-resetting-when-refreshing">persists the dynamic checked state</a> of an <code>&lt;input&gt;</code> across page loads. Use the {{htmlattrxref("autocomplete","input")}} attribute to control this feature.</p>
-
-<h3 id="htmlattrdefvalue">{{htmlattrdef("value")}}</h3>
-
-<p>The <code>value</code> attribute is one which all {{HTMLElement("input")}}s share; however, it serves a special purpose for inputs of type <code>radio</code>: when a form is submitted, only radio buttons which are currently checked are submitted to the server, and the reported value is the value of the <code>value</code> attribute. If the <code>value</code> is not otherwise specified, it is the string <code>on</code> by default. This is demonstrated in the section {{anch("Value")}} above.</p>
-
-<h2 id="Using_radio_inputs">Using radio inputs</h2>
-
-<p>We already covered the fundamentals of radio buttons above. Let's now look at the other common radio-button-related features and techniques you may need to know about.</p>
-
-<h3 id="Selecting_a_radio_button_by_default">Selecting a radio button by default</h3>
-
-<p>To make a radio button selected by default, you simply include <code>checked</code> attribute, as shown in this revised version of the previous example:</p>
-
-<pre class="brush: html notranslate">&lt;form&gt;
- &lt;p&gt;Please select your preferred contact method:&lt;/p&gt;
- &lt;div&gt;
- &lt;input type="radio" id="contactChoice1"
- name="contact" value="email" checked&gt;
- &lt;label for="contactChoice1"&gt;Email&lt;/label&gt;
-
- &lt;input type="radio" id="contactChoice2"
- name="contact" value="phone"&gt;
- &lt;label for="contactChoice2"&gt;Phone&lt;/label&gt;
-
- &lt;input type="radio" id="contactChoice3"
- name="contact" value="mail"&gt;
- &lt;label for="contactChoice3"&gt;Mail&lt;/label&gt;
- &lt;/div&gt;
- &lt;div&gt;
- &lt;button type="submit"&gt;Submit&lt;/button&gt;
- &lt;/div&gt;
-&lt;/form&gt;</pre>
-
-<p>{{EmbedLiveSample('Selecting_a_radio_button_by_default', 600, 130)}}</p>
-
-<p>In this case, the first radio button is now selected by default.</p>
-
-<div class="note">
-<p><strong>Note</strong>: If you put the <code>checked</code> attribute on more than one radio button, later instances will override earlier ones; that is, the last <code>checked</code> radio button will be the one that is selected. This is because only one radio button in a group can ever be selected at once, and the user agent automatically deselects others each time a new one is marked as checked.</p>
-</div>
-
-<h3 id="Providing_a_bigger_hit_area_for_your_radio_buttons">Providing a bigger hit area for your radio buttons</h3>
-
-<p>In the above examples, you may have noticed that you can select a radio button by clicking on its associated {{htmlelement("label")}} element, as well as on the radio button itself. This is a really useful feature of HTML form labels that makes it easier for users to click the option they want, especially on small-screen devices like smartphones.</p>
-
-<p>Beyond accessibility, this is another good reason to properly set up <code>&lt;label&gt;</code> elements on your forms.</p>
-
-<h2 id="Validation">Validation</h2>
-
-<p>Radio buttons don't participate in constraint validation; they have no real value to be constrained.</p>
-
-<h2 id="Styling_radio_inputs">Styling radio inputs</h2>
-
-<p>The following example shows a slightly more thorough version of the example we've seen throughout the article, with some additional styling, and with better semantics established through use of specialized elements. The HTML looks like this:</p>
-
-<pre class="brush: html notranslate">&lt;form&gt;
- &lt;fieldset&gt;
- &lt;legend&gt;Please select your preferred contact method:&lt;/legend&gt;
- &lt;div&gt;
- &lt;input type="radio" id="contactChoice1"
- name="contact" value="email" checked&gt;
- &lt;label for="contactChoice1"&gt;Email&lt;/label&gt;
-
- &lt;input type="radio" id="contactChoice2"
- name="contact" value="phone"&gt;
- &lt;label for="contactChoice2"&gt;Phone&lt;/label&gt;
-
- &lt;input type="radio" id="contactChoice3"
- name="contact" value="mail"&gt;
- &lt;label for="contactChoice3"&gt;Mail&lt;/label&gt;
- &lt;/div&gt;
- &lt;div&gt;
- &lt;button type="submit"&gt;Submit&lt;/button&gt;
- &lt;/div&gt;
- &lt;/fieldset&gt;
-&lt;/form&gt;</pre>
-
-<p>There's not much new to note here except for the addition of {{htmlelement("fieldset")}} and {{htmlelement("legend")}} elements, which help to group the functionality nicely and in a semantic way.</p>
-
-<p>The CSS involved is a bit more significant:</p>
-
-<pre class="brush: css notranslate">html {
- font-family: sans-serif;
-}
-
-div:first-of-type {
- display: flex;
- align-items: flex-start;
- margin-bottom: 5px;
-}
-
-label {
- margin-right: 15px;
- line-height: 32px;
-}
-
-input {
- -webkit-appearance: none;
- -moz-appearance: none;
- appearance: none;
-
- border-radius: 50%;
- width: 16px;
- height: 16px;
-
- border: 2px solid #999;
- transition: 0.2s all linear;
- margin-right: 5px;
-
- position: relative;
- top: 4px;
-}
-
-input:checked {
- border: 6px solid black;
-}
-
-button,
-legend {
- color: white;
- background-color: black;
- padding: 5px 10px;
- border-radius: 0;
- border: 0;
- font-size: 14px;
-}
-
-button:hover,
-button:focus {
- color: #999;
-}
-
-button:active {
- background-color: white;
- color: black;
- outline: 1px solid black;
-}</pre>
-
-<p>Most notable here is the use of the {{cssxref("-moz-appearance")}} property (with prefixes needed to support some browsers). By default, radio buttons (and <a href="/en-US/docs/Web/HTML/Element/input/checkbox">checkboxes</a>) are styled with the operating system's native styles for those controls. By specifying <code>appearance: none</code>, you can remove the native styling altogether, and create your own styles for them. Here we've used a {{cssxref("border")}} along with {{cssxref("border-radius")}} and a {{cssxref("transition")}} to create a nice animating radio selection. Notice also how the {{cssxref(":checked")}} pseudo-class is used to specify the styles for the radio button's appearance when selected.</p>
-
-<div class="note">
-<p><strong>Compatibility note</strong>: If you wish to use the {{cssxref("appearance")}} property, you should test it very carefully. Although it is supported in most modern browsers, its implementation varies widely. In older browsers, even the keyword <code>none</code> does not have the same effect across different browsers, and some do not support it at all. The differences are smaller in the newest browsers.</p>
-</div>
-
-<p>{{EmbedLiveSample('Styling_radio_inputs', 600, 120)}}</p>
-
-<p>Notice that when clicking on a radio button, there's a nice, smooth fade out/in effect as the two buttons change state. In addition, the style and coloring of the legend and submit button are customized to have strong contrast. This might not be a look you'd want in a real web application, but it definitely shows off the possibilities.</p>
-
-<h2 id="Specifications">Specifications</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th>Specification</th>
- <th>Status</th>
- <th></th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName('HTML WHATWG', 'forms.html#radio-button-state-(type=radio)', '&lt;input type="radio"&gt;')}}</td>
- <td>{{Spec2('HTML WHATWG')}}</td>
- <td></td>
- </tr>
- <tr>
- <td>{{SpecName('HTML5 W3C', 'forms.html#radio-button-state-(type=radio)', '&lt;input type="radio"&gt;')}}</td>
- <td>{{Spec2('HTML5 W3C')}}</td>
- <td></td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-
-
-<p>{{Compat("html.elements.input.input-radio")}}</p>
-
-<h2 id="See_also">See also</h2>
-
-<ul>
- <li>{{HTMLElement("input")}} and the {{domxref("HTMLInputElement")}} interface that implements it.</li>
- <li>{{domxref("RadioNodeList")}}: the interface that describes a list of radio buttons</li>
- <li><a href="/en-US/docs/Learn/HTML/Forms/Property_compatibility_table_for_form_widgets">Compatibility of CSS properties</a></li>
-</ul>
diff --git a/files/ar/web/html/element/span/index.html b/files/ar/web/html/element/span/index.html
deleted file mode 100644
index faaf3faf7f..0000000000
--- a/files/ar/web/html/element/span/index.html
+++ /dev/null
@@ -1,123 +0,0 @@
----
-title: <span>
-slug: Web/HTML/Element/span
-translation_of: Web/HTML/Element/span
-original_slug: HTML/Element/span
----
-<p><font><font>و </font></font><strong><font><font>HTML </font></font><code>&lt;span&gt;</code><font><font>العنصر</font></font></strong><font><font> هو حاوية مضمنة عامة لمحتوى الصيغة، التي لا تمثل في حد ذاتها أي شيء. </font><font>يمكن استخدامه لتجميع العناصر لأغراض التصميم (باستخدام </font></font><code>class</code><font><font>أو </font></font><code>id</code><font><font>السمات) ، أو لأنها تتشارك في قيم السمات ، مثل </font></font><code>lang</code><font><font>. </font></font><font><font>يجب استخدامه فقط عندما يكون أي عنصر دلالي آخر مناسبًا. </font></font><code>&lt;span&gt;</code><font><font>تشبه إلى حد كبير على </font></font><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div" title="عنصر قسم محتويات HTML (&lt;div>) هو الحاوية العامة لمحتوى التدفق. ليس له تأثير على المحتوى أو التخطيط حتى يتم تصميمه باستخدام CSS."><code>&lt;div&gt;</code></a><font><font>عنصر، ولكن </font></font><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div" title="عنصر قسم محتويات HTML (&lt;div>) هو الحاوية العامة لمحتوى التدفق. ليس له تأثير على المحتوى أو التخطيط حتى يتم تصميمه باستخدام CSS."><code>&lt;div&gt;</code></a><font><font>هو </font></font><a href="https://developer.mozilla.org/en-US/docs/HTML/Block-level_elements"><font><font>عنصر على مستوى الكتلة</font></font></a><font><font> في حين أن </font></font><code>&lt;span&gt;</code><font><font>هو </font></font><a href="https://developer.mozilla.org/en-US/docs/HTML/Inline_elements"><font><font>عنصر المضمنة</font></font></a><font><font> .</font></font></p>
-
-<table class="properties">
- <tbody>
- <tr>
- <th scope="row">
- <table>
- <tbody>
- <tr>
- <th scope="row"><a href="https://developer.mozilla.org/en-US/docs/HTML/Content_categories"><font><font>فئات المحتوى</font></font></a></th>
- </tr>
- </tbody>
- </table>
- </th>
- <td><a href="https://developer.mozilla.org/en-US/docs/HTML/Content_categories#Flow_content"><font><font>محتوى التدفق</font></font></a><font><font> ، </font></font><a href="https://developer.mozilla.org/en-US/docs/HTML/Content_categories#Phrasing_content"><font><font>محتوى الصياغة</font></font></a><font><font> .</font></font></td>
- </tr>
- <tr>
- <th scope="row">المحتوى المسموح به</th>
- <td>
- <table>
- <tbody>
- <tr>
- <td><a href="https://developer.mozilla.org/en-US/docs/HTML/Content_categories#Phrasing_content"><font><font>محتوى الصياغة</font></font></a></td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- <tr>
- <th scope="row">إغفال العلامة</th>
- <td>الآباء المسموح بهم</td>
- </tr>
- <tr>
- <td><font><font>أي عنصر يقبل </font></font><a href="https://developer.mozilla.org/en-US/docs/HTML/Content_categories#Phrasing_content"><font><font>محتوى الصياغة</font></font></a><font><font> ، أو أي عنصر يقبل </font></font><a href="https://developer.mozilla.org/en-US/docs/HTML/Content_categories#Flow_content"><font><font>محتوى التدفق</font></font></a><font><font> .</font></font></td>
- </tr>
- <tr>
- <th scope="row">يسمح أدوار ARIA</th>
- <td>أي</td>
- </tr>
- <tr>
- <th scope="row">واجهة DOM</th>
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLSpanElement" title="تمثل واجهة HTMLSpanElement عنصر &lt;span> وتستمد من واجهة HTMLElement ، ولكن دون تنفيذ أي خصائص أو طرق إضافية."><code>HTMLSpanElement</code></a><font><font>(قبل HTML 5 ، كانت الواجهة </font></font><a href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement" title="تمثل واجهة HTMLElement أي عنصر HTML. تقوم بعض العناصر بتنفيذ هذه الواجهة مباشرة ، بينما يقوم بعضها الآخر بتنفيذها من خلال واجهة توارثها."><code>HTMLElement</code></a><font><font>)</font></font></td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="السمات"><font><font>السمات</font></font></h2>
-
-<p><font><font>هذا العنصر يشمل فقط </font></font><a href="https://developer.mozilla.org/en-US/docs/HTML/Global_attributes"><font><font>السمات العالمية</font></font></a><font><font> .</font></font></p>
-
-<h2 id="المثال_1"><font><font>المثال 1</font></font></h2>
-
-<pre class="brush:html;gutter:false">&lt;p&gt;&lt;span&gt;Some text&lt;/span&gt;&lt;/p&gt;</pre>
-
-<h3 id="نتيجة"><font><font>نتيجة</font></font></h3>
-
-<p><font><font>بعض النصوص</font></font></p>
-
-<p> </p>
-
-<h2 id="المثال_2"><font><font>المثال 2</font></font></h2>
-
-<pre class="brush:html;gutter:false">&lt;li&gt;&lt;span&gt;
- &lt;a href="portfolio.html" target="_blank"&gt;See my portfolio&lt;/a&gt;
-&lt;/span&gt;&lt;/li&gt;
-</pre>
-
-<h3 id="CSS">CSS:</h3>
-
-<div class="note">
-<p>li span {<br>
- background: gold;<br>
- }</p>
-</div>
-
-<h2 id="مواصفات"><font><font>مواصفات</font></font></h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">تخصيص</th>
- <th scope="col">الحالة</th>
- <th scope="col">تعليق</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName('HTML WHATWG', 'semantics.html#the-span-element', '&lt;span&gt;')}}</td>
- <td>{{Spec2('HTML WHATWG')}}</td>
- <td> </td>
- </tr>
- <tr>
- <td>{{SpecName('HTML5 W3C', 'text-level-semantics.html#the-span-element', '&lt;span&gt;')}}</td>
- <td>{{Spec2('HTML5 W3C')}}</td>
- <td>واجهة DOM هي الآن {{domxref("HTMLSpanElement")}}.</td>
- </tr>
- <tr>
- <td>{{SpecName('HTML4.01', 'struct/global.html#edef-SPAN', '&lt;span&gt;')}}</td>
- <td>{{Spec2('HTML4.01')}}</td>
- <td> </td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="توافق_التصفح">توافق التصفح</h2>
-
-
-
-<p>{{Compat("html.elements.span")}}</p>
-
-<h2 id="انظر_أيضا"><font><font>انظر أيضا</font></font></h2>
-
-<ul>
- <li>HTML {{HTMLElement("div")}} عنصر </li>
-</ul>
-
-<div>{{HTMLRef}}</div>
diff --git a/files/ar/web/html/element/tt/index.html b/files/ar/web/html/element/tt/index.html
deleted file mode 100644
index 79a788e995..0000000000
--- a/files/ar/web/html/element/tt/index.html
+++ /dev/null
@@ -1,162 +0,0 @@
----
-title: '<tt>: The Teletype Text element (obsolete)'
-slug: Web/HTML/Element/tt
-translation_of: Web/HTML/Element/tt
-original_slug: HTML/Element/tt
----
-<div>{{ obsolete_header() }}</div>
-
-<p><font><font>وعفا عليها الزمن </font></font><strong><font><font>HTML المبرقة الكاتبة عنصر نص</font></font></strong><font><font> ( </font></font><strong><code>&lt;tt&gt;</code></strong><font><font>) بإنشاء النص المضمن الذي يقدم باستخدام </font></font><a href="https://developer.mozilla.org/en-US/docs/Glossary/user_agent" title="وكيل المستخدم: وكيل المستخدم هو برنامج كمبيوتر يمثل الشخص ، على سبيل المثال ، متصفح في سياق الويب."><font><font>وكيل المستخدم</font></font></a><font><font> وجه الافتراضي أحادي المسافة الخط. </font></font><font><font>تم إنشاء هذا العنصر لغرض تقديم نص كما سيتم عرضه على شاشة عرض ثابت مثل نمط teletype أو نص فقط أو طابعة خط</font></font></p>
-
-<p><font><font>تُستخدم المصطلحات </font></font><strong><font><font>غير المتناسبة</font></font></strong><font><font> ، </font></font><strong><font><font>والنمط الأحادي</font></font></strong><font><font> ، </font></font><strong><font><font>والمونوسبيس</font></font></strong><font><font> بشكل تبادلي ولها نفس المعنى العام: فهي تصف حرفًا محرفًا تكون جميع أحرفه هي نفس عدد وحدات البكسل على نطاق واسع.</font></font></p>
-
-<p><font><font>هذا العنصر عفا عليه الزمن ، ومع ذلك. </font><font>يجب عليك استخدام أكثر مفيدة لغويا </font></font><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/code" title="يعرض عنصر &lt;code> HTML محتوياته بطريقة مصممة للإشارة إلى أن النص عبارة عن جزء قصير من رمز الكمبيوتر."><code>&lt;code&gt;</code></a><font><font>، </font></font><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/kbd" title="يمثل عنصر إدخال لوحة مفاتيح HTML (&lt;kbd>) امتدادًا للنص المضمن يشير إلى إدخال المستخدم النصي من لوحة المفاتيح أو الإدخال الصوتي أو أي جهاز إدخال نص آخر."><code>&lt;kbd&gt;</code></a><font><font>، </font></font><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/var" title="يمثل عنصر HTML متغير (&lt;var>) اسم متغير في تعبير رياضي أو سياق برمجة."><code>&lt;var&gt;</code></a><font><font>، أو</font></font><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/samp" title="يتم استخدام عنصر عينة HTML (&lt;samp>) لإحاطة النص المضمن الذي يمثل عينة (أو اقتباس) من برنامج كمبيوتر."><code>&lt;samp&gt;</code></a><font><font>عناصر النص المضمن الذي يحتاج إلى أن تقدم في نوع أحادي المسافة، أو </font></font><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/pre" title="يمثل عنصر &lt;pre> HTML النص المنسق مسبقًا والذي سيقدم بالضبط كما هو مكتوب في ملف HTML."><code>&lt;pre&gt;</code></a><font><font>شعارا لالمحتوى الذي ينبغي أن تقدم ككتلة منفصل.</font></font></p>
-
-<div class="note"><font><font>إذا لم يكن أي من العناصر الدلالية مناسبًا لحالة الاستخدام الخاصة بك (على سبيل المثال ، إذا كنت تحتاج ببساطة إلى عرض بعض المحتوى بخط غير تناسبي) ، فيجب أن تفكر في استخدام </font></font><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/span" title="عنصر HTML &lt;span> عبارة عن حاوية مضمنة عامة لمحتوى الصياغة ، والتي لا تمثل أي شيء بطبيعته. يمكن استخدامه لتجميع العناصر لأغراض التصميم (باستخدام صفات الصف أو الهوية) ، أو لأنها تتشارك في قيم السمات ، مثل lang."><code>&lt;span&gt;</code></a><font><font>العنصر ، وأن تصممه كما تريد باستخدام CSS. </font><font>و </font></font><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/font-family" title="تحدد الخاصية CSS لعائلة الخط قائمة ذات أولوية من اسم عائلة خط واحد أو أكثر و / أو أسماء عامة للعنصر المحدد."><code>font-family</code></a><font><font>الخاصية هي مكان جيد للبدء</font></font></div>
-
-<table class="properties">
- <tbody>
- <tr>
- <th scope="row"><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Content_categories"><font><font>فئات المحتوى</font></font></a></th>
- <td>
- <table>
- <tbody>
- <tr>
- <td><a href="https://developer.mozilla.org/en-US/docs/HTML/Content_categories#Flow_content"><font><font>محتوى التدفق</font></font></a><font><font> ، </font><a href="https://developer.mozilla.org/en-US/docs/HTML/Content_categories#Flow_content"><font>ومحتوى </font></a></font><a href="https://developer.mozilla.org/en-US/docs/HTML/Content_categories#Phrasing_content"><font><font>الصياغة</font></font></a><font><font> ، ومحتوى واضح</font></font></td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- <tr>
- <th scope="row">المحتوى المسموح به</th>
- <td><a href="https://developer.mozilla.org/en-US/docs/HTML/Content_categories#Phrasing_content"><font><font>محتوى الصياغة</font></font></a><font><font> .</font></font></td>
- </tr>
- <tr>
- <th scope="row">إغفال العلامة</th>
- <td>لا شيء ، كل من علامة البداية والنهاية إلزامية.</td>
- </tr>
- <tr>
- <th scope="row">الآباء المسموح بهم</th>
- <td><font><font>ي عنصر يقبل </font></font><a href="https://developer.mozilla.org/en-US/docs/HTML/Content_categories#Phrasing_content"><font><font>محتوى الصياغة</font></font></a></td>
- </tr>
- <tr>
- <th scope="row">يسمح أدوار ARIA</th>
- <td>أي</td>
- </tr>
- <tr>
- <th scope="row">
- <table>
- <tbody>
- <tr>
- <th scope="row"><font><font>واجهة DOM</font></font></th>
- </tr>
- </tbody>
- </table>
- </th>
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement" title="تمثل واجهة HTMLElement أي عنصر HTML. تقوم بعض العناصر بتنفيذ هذه الواجهة مباشرة ، بينما يقوم بعضها الآخر بتنفيذها من خلال واجهة توارثها."><code>HTMLElement</code></a></td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="السمات"><font><font>السمات</font></font></h2>
-
-<p><font><font>هذا العنصر يشمل فقط </font></font><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/global_attributes"><font><font>السمات العالمية</font></font></a></p>
-
-<h2 id="أمثلة"><font><font>أمثلة</font></font></h2>
-
-<h3 id="المثال_الأساسي"><font><font>المثال الأساسي</font></font></h3>
-
-<p><font><font>يستخدم هذا المثال </font></font><code>&lt;tt&gt;</code><font><font>لإظهار النص الذي تم إدخاله والإخراج بواسطة تطبيق طرفي.</font></font></p>
-
-<pre class="brush:html">&lt;p&gt;Enter the following at the telnet command prompt: &lt;code&gt;set localecho&lt;/code&gt;&lt;br /&gt;
-
-The telnet client should display: &lt;tt&gt;Local Echo is on&lt;/tt&gt;&lt;/p&gt;
-</pre>
-
-<h4 id="نتيجة"><font><font>نتيجة</font></font></h4>
-
-<p>{{EmbedLiveSample("Basic_example", 650, 80)}}</p>
-
-<h3 id="تجاوز_الخط_الافتراضي"><font><font>تجاوز الخط الافتراضي</font></font></h3>
-
-<p>يمكنك تجاوز الخط الافتراضي للمتصفح - إذا كان المتصفح يسمح لك بذلك ، وهو أمر غير مطلوب - باستخدام CSS:</p>
-
-<h4 id="CSS">CSS</h4>
-
-<pre class="brush: css">tt {
- font-family: "Lucida Console", "Menlo", "Monaco", "Courier",
- monospace;
-}</pre>
-
-<h4 id="HTML">HTML</h4>
-
-<pre class="brush: html">&lt;p&gt;Enter the following at the telnet command prompt: &lt;code&gt;set localecho&lt;/code&gt;&lt;br /&gt;
-
-The telnet client should display: &lt;tt&gt;Local Echo is on&lt;/tt&gt;&lt;/p&gt;</pre>
-
-<h4 id="نتيجة_2"><font><font>نتيجة</font></font></h4>
-
-<p>{{EmbedLiveSample("Overriding_the_default_font", 650, 80)}}</p>
-
-<h2 id="ملاحظات_الاستخدام"><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tt$edit#Usage_notes" rel="nofollow, noindex"><font><font>ملاحظات الاستخدام</font></font></a></h2>
-
-<p> </p>
-
-<p><font><font>يتم تقديم </font></font><code>&lt;tt&gt;</code><font><font>العنصر افتراضيًا باستخدام الخط الافتراضي غير المتناسب في المستعرض. </font><font>يمكنك إلغاء ذلك باستخدام CSS عن طريق إنشاء قاعدة باستخدام </font></font><code>tt</code><font><font>المحدد ، كما هو موضح في المثال </font></font><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tt#Overriding_the_default_font"><font><font>تجاوز الخط الافتراضي</font></font></a><font><font> أعلاه.</font></font></p>
-
-<p> </p>
-
-<div class="note">
-<p> </p>
-
-<p><font><font>التغييرات التي تمت تهيئتها بواسطة المستخدم على إعداد خط أحادي المسافة الافتراضي قد تكون لها الأسبقية على CSS الخاص بك.</font></font></p>
-
-<p> </p>
-</div>
-
-<p><font><font>على الرغم من أن هذا العنصر لم يتم إهماله رسميًا في HTML 4.01 ، إلا أنه تم تثبيط استخدامه بسبب العناصر الدلالية و / أو CSS. </font><font>و </font></font><code>&lt;tt&gt;</code><font><font>العنصر عفا عليه الزمن في HTML 5.</font></font></p>
-
-<h2 id="مواصفات"><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tt$edit#Specifications" rel="nofollow, noindex"><font><font>مواصفات</font></font></a></h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName('HTML WHATWG', 'obsolete.html#tt', '&lt;tt&gt;')}}</td>
- <td>{{Spec2('HTML WHATWG')}}</td>
- <td> </td>
- </tr>
- <tr>
- <td>{{SpecName('HTML5 W3C', 'obsolete.html#elementdef-tt', '&lt;tt&gt;')}}</td>
- <td>{{Spec2('HTML5 W3C')}}</td>
- <td> </td>
- </tr>
- <tr>
- <td>{{SpecName('HTML4.01', 'present/graphics.html#h-15.2.1', '&lt;tt&gt;')}}</td>
- <td>{{Spec2('HTML4.01')}}</td>
- <td> </td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="التوافق_المتصفح"><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tt$edit#Browser_compatibility" rel="nofollow, noindex"><font><font>التوافق المتصفح</font></font></a></h2>
-
-
-
-<p>{{Compat("html.elements.tt")}}</p>
-
-<h2 id="See_also" name="See_also"><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tt$edit#See_also" rel="nofollow, noindex"><font><font>انظر أيضا</font></font></a></h2>
-
-<ul>
- <li>The semantic {{HTMLElement("code")}}, {{HTMLElement("var")}}, {{HTMLElement("kbd")}}, and {{HTMLElement("samp")}} elements</li>
- <li>The {{HTMLElement("pre")}} element for displaying preformatted text blocks</li>
-</ul>
-
-<div>{{ HTMLRef }}</div>
diff --git a/files/ar/web/html/index.html b/files/ar/web/html/index.html
deleted file mode 100644
index 398297a1a0..0000000000
--- a/files/ar/web/html/index.html
+++ /dev/null
@@ -1,91 +0,0 @@
----
-title: لغة ترميز النص الفائق
-slug: Web/HTML
-tags:
- - HTML
- - Landing
- - Web
----
-<div>{{HTMLSidebar}}</div>
-
-<p class="summary" dir="rtl"><span class="seoSummary">لغة ترميز النص الفائق (HTML) هي اللبنة الأساسية للويب. فهي تقوم بوصف وتعريف <em>محتوى</em> صفحات الويب. التقنيات الأخرى إلى جانب هذه اللغة تعمل عادةً على وصف مظهر صفحة الويب (<a href="/ar/docs/Web/CSS">صفحات الطرز المتراصة</a>) أو تفاعلها مع المستخدم (<a href="/ar/docs/Web/JavaScript">الجافاسكربت</a>). </span></p>
-
-<p dir="rtl">مصطلح "نص تشعبي" يشير إلى الروابط التي تربط صفحات الويب ببعضها، إما بموقع واحد، أو بين مواقع متعددة. فالروابط هي جانب أساسي من الويب. عبر رفعك لمحتوى على الأنترنت وربطه بصفحات أخرى أنشأها أشخاص آخرون، فأنت تصبح مشاركاً نشيطاً في شبكة الإنترنت.</p>
-
-<p dir="rtl">تستخدم لغة ترميز النص الفائقة تقنيّة "الترميز (markup)" لوصف النصوص، والصور، وغيرها من المحتويات؛ لعرضعها على المتصفح. وسوم اللغة تتضمن "عناصر (elements)" خاصة مثل {{HTMLElement("head")}}، {{HTMLElement("title")}}، {{HTMLElement("body")}}، {{HTMLElement("header")}}، {{HTMLElement("footer")}}، {{HTMLElement("article")}}، {{HTMLElement("section")}}، {{HTMLElement("p")}}، {{HTMLElement("div")}}، {{HTMLElement("span")}}، {{HTMLElement("img")}}، وغيرها الكثير.</p>
-
-<p dir="rtl">المقالات أدناه ستساعدك على تعلم المزيد حول هذه اللغة.</p>
-
-<section class="cleared" id="sect1">
-<ul class="card-grid">
- <li dir="rtl"><span>مقدمة عن لغة ترميز النص الفائق</span>إذا كنت جديداً على تطوير الويب فاحرص على قراءة مقالتنا حول <a href="/ar/docs/Learn/Getting_started_with_the_web/HTML_basics">أساسيات اللغة</a> لتعرف ما هيّتها، وكيف يمكنك استخدامها.</li>
- <li dir="rtl"><span>دورات عن لغة ترميز النص الفائق</span>للحصول على مقالات عن كيفيّة استخدام هذه اللغة، وكذلك على دورات وأمثلة شاملة، تفقد <a href="/ar/docs/Learn/HTML">منطقة التعلم</a> خاصتنا.</li>
- <li dir="rtl"><span>مرجع لغة ترميز النص الفائق</span>
- <p>في قسم <a href="/ar/docs/Web/HTML/Reference">مرجع لغة ترميز النص الفائق</a> الشامل خاصتنا، ستجد تفاصيل حول كل عنصر وسِمة في اللغة.</p>
- </li>
-</ul>
-
-<div class="row topicpage-table">
-<div class="section">
-<h2 class="Tools" dir="rtl" id="Tools" name="Tools">دورات للمبتدئين</h2>
-
-<p dir="rtl">تمتاز<em> </em><a href="/ar/docs/Learn/HTML">منطقة تعلم لغة ترميز النص الفائق</a> بوحدات متعددة تقوم بتعليم اللغة من الألف إلى الياء، ولا تتطلب معرفة مُسبقة.</p>
-
-<dl>
- <dt dir="rtl"><a href="/ar/docs/Learn/HTML/Introduction_to_HTML">مقدمة عن لغة ترميز النص الفائق</a></dt>
- <dd dir="rtl">تقوم هذه الوحدة بشرح الأسس، وتأخذك لتعلم المفاهيم المهمة وبنيّة اللغة، بحيث تعلمك كيفيّة وصف النصوص في اللغة، وإنشاء روابط تشعيبيّة، واستخدامها لهيكلة صفحات الويب.</dd>
- <dt dir="rtl"><a href="/ar/docs/Learn/HTML/Multimedia_and_embedding">الوسائط المتعددة</a></dt>
- <dd dir="rtl">هذه الوحدة تشرح كيف يمكنك استخدام لغة ترميز النص الفائق لتضمين وسائط متعددة في صفحات الويب خاصتك، كما تتضمن المقالة طرق مختلفة يمكنك استخدامها لإضافة الصور، وفيديوهات، وملفات صوت، وحتى صفحات ويب أخرى كاملة.</dd>
- <dt dir="rtl"><a href="/ar/docs/Learn/HTML/Tables">الجداول</a></dt>
- <dd dir="rtl">يمثل عرض البيانات المجدولة على صفحة الويب بطريق مفهومة وسهلة الوصول تحدياً. هذه الوحدة تغطي وسوم الجدول الأساسية، إلى جانب ميزات أكثر تعقيداً مثل إضافة تسميات توضيحيّة وملخصات.</dd>
- <dt dir="rtl"><a href="/ar/docs/Learn/HTML/Forms">الاستمارات</a></dt>
- <dd dir="rtl">الاستمارة (form) هي جزء مهم جداً من الويب، فهي توفر الكثير من الوظائف التي ستحتاجها للتفاعل مع الموقع، مثل التسجيل وتسجيل الدخول، وإرسال التعليقات (feedback)، وشراء منتجات، والمزيد. ستعلمك هذه الوحدة كيفيّة تصميم الاستمارات.</dd>
- <dt dir="rtl"><a href="/ar/docs/Learn/HTML/Howto">استخدام لغة ترميز النص الفائق لحل المشاكل شائعة</a></dt>
- <dd dir="rtl">توفر هذه المقالة روابط لأقسام تحتوي على شرح لكيفيّة استخدام هذه اللغة لحل مشاكل شائعة عندما تقوم بإنشاء صفحة ويب مثل: التعامل مع العناوين، وإضافة صورة أو فيديو، واستخدام المؤكدات في المحتوى، وإنشاء استمارة بسيطة، وغيرها من المواضيع.</dd>
-</dl>
-
-<h2 dir="rtl" id="مواضيع_متقدمة">مواضيع متقدمة</h2>
-
-<dl>
- <dt class="landingPageList" dir="rtl"><a href="/ar/docs/Web/HTML/Focus_management_in_HTML">إدارة التركيز في لغة ترميز النص الفائق</a></dt>
- <dd class="landingPageList" dir="rtl">تساعدك السمة <code><a href="/ar/docs/Web/API/Document/activeElement">activeElement</a></code><a href="/en-US/docs/Web/API/Document/activeElement"> </a>والدالة <code><a href="/ar/docs/Web/API/Document/hasFocus">()hasFocus</a></code> على تتبع والتحكم بتفاعلات المستخدم مع عناصر الصفحة.</dd>
- <dt class="landingPageList" dir="rtl"><a href="/ar/docs/Web/HTML/Using_the_application_cache">استخدام ذاكرة التخزين المؤقت للتطبيق</a></dt>
- <dd class="landingPageList" dir="rtl">ذاكرة التخزين المؤقت تسمح للتطبيقات المبنية على الويب بالعمل في وضع عدم الإتصال. يمكنك استخدام واجهة <strong>ذاكرة التخزين المؤقت للتطبيق</strong> البرمجيّة (<em>AppCache</em>) لتحديد الموارد التي يجب على المتصفح تخزينها وإتاحتها للمستخدمين في وضع عدم الإتصال. التطبيقات التي يتم تحميلها مؤقتاً تعمل بشكل صحيح حتى ولو قام المستخدمون بالضغط على زر التحديث عندما يكونون في وضع عدم الإتصال.</dd>
-</dl>
-</div>
-
-<div class="section">
-<h2 class="Documentation" dir="rtl" id="مراجع">مراجع</h2>
-
-<dl>
- <dt class="landingPageList" dir="rtl"><a href="/ar/docs/Web/HTML/Reference">مرجع لغة ترميز النص الفائق</a></dt>
- <dd class="landingPageList" dir="rtl">تتألف لغة ترميز النص الفائق من <strong>عناصر</strong> (elements)، كل منها يمكن تعديله بواسطة عدد من <strong>السمات</strong> (attributes). وصفحات لغة ترميز النص الفائق متصلة ببعضها البعض ب<a href="/en-US/docs/Web/HTML/Link_types">روابط</a>.</dd>
- <dt class="landingPageList" dir="rtl"><a href="/ar/docs/Web/HTML/Element">مرجع عناصر لغة ترميز النص الفائق</a></dt>
- <dd class="landingPageList" dir="rtl">تصفح قائمة بجميع <a class="glossaryLink" href="/en-US/docs/Glossary/HTML">عناصر هذه اللغة</a>.</dd>
- <dt class="landingPageList" dir="rtl"><a href="/ar/docs/Web/HTML/Attributes">مرجع سمات لغة ترميز النص الفائق</a></dt>
- <dd class="landingPageList" dir="rtl">تمتلك عناصر لغة ترميز النص الفائق سماتاً. تعد هذه السمات قيم إضافية تقوم بتعديل العناصر أو تخصيص وظيفتها بطرق مختلفة.</dd>
- <dt class="landingPageList" dir="rtl"><a href="/ar/docs/Web/HTML/Global_attributes">السمات العموميّة</a></dt>
- <dd class="landingPageList" dir="rtl">يمكن استخدام السمات العموميّة (تقريباً) على جميع <a href="/ar/docs/Web/HTML/Element">عناصر اللغة</a>، <em>حتى العناصر الغير معياريّة</em>. هذا يعني أنَّ أي عنصر غير معياري يجب أن يسمح باستخدام هذه السمات، بالرغم من أنَّ هذه العناصر تجعل مستند لغة ترميز النص الفائق الإصدار الخامس غير متوافِق ومعياري.</dd>
- <dt class="landingPageList" dir="rtl"><a href="/ar/docs/Web/HTML/Inline_elements">العناصر المُضمنِة</a> و<a href="/ar/docs/Web/HTML/Block-level_elements">العناصر المُستحوذِة</a></dt>
- <dd class="landingPageList" dir="rtl">العناصر عادةً في <strong>لغة ترميز النص الفائق </strong> إما "مضمنة" أو "مستحوذة". العنصر المضمن يأحذ المساحة المحصورة بواسطة الوسوم التي تحدده، أما العنصر المستحوذ فأنَّه يأخذ كامل مساحة العنصر الأب (الحاوي)، وبالتالي فإنه يُنشِئ "كتلة".</dd>
- <dt class="landingPageList" dir="rtl"><a href="/ar/docs/Web/HTML/Link_types">أنواع الرابط</a></dt>
- <dd class="landingPageList" dir="rtl">تتنوع أنواع الروابط في لغة ترميز النص الفائق، حيث يمكن استخدامها لإنشاء أو تعريف صلة بين وثيقتين. تتضمن عناصر الرابط التي يمكن استخدامها على <a href="/ar/docs/Web/HTML/Element/a"><code>&lt;a&gt;</code></a> ،<a href="/ar/docs/Web/HTML/Element/area"><code>&lt;area&gt;</code></a>، و <a href="/ar/docs/Web/HTML/Element/link"><code>&lt;link&gt;</code></a>.</dd>
- <dt class="landingPageList" dir="rtl"><a href="/ar/docs/Web/HTML/Supported_media_formats">صيغ الوسائط المدعومة في لغة ترميز النص الفائق</a></dt>
- <dd class="landingPageList" dir="rtl">تسمح لك العناصر <a href="/ar/docs/Web/HTML/Element/audio"><code>&lt;audio&gt;</code></a> و <a href="/ar/docs/Web/HTML/Element/video"><code>&lt;video&gt;</code></a> بتشغيل وسائط الصوت والفيديو. هذه العناصر توفر بدائل مشابهة للمتصفح كالتي موجودة في أدوبي فلاش والإضافات الأخرى.</dd>
- <dt class="landingPageList" dir="rtl"><a href="/ar/docs/Web/HTML/Kinds_of_HTML_content">أنواع محتوى لغة ترميز النص الفائق</a></dt>
- <dd class="landingPageList" dir="rtl">تتألف لغة ترميز النص الفائق من عدة أنواع من المحتوى، كل نوع يتيح لك استخدام عدة سياقات ويمنعك من استخدام أخرى. وبالمثل كل نوع يملك مجموعة من الفئات يمكن أن تحتوي على عناصر يمكنك، أو لا يمكنك استخدامها. هذا دليل يشرح هذه الفئات.</dd>
- <dt class="landingPageList" dir="rtl"><a href="/ar/docs/Web/HTML/Quirks_Mode_and_Standards_Mode">وضع المراوغة والوضع المعياري</a></dt>
- <dd class="landingPageList" dir="rtl">معلومات تاريخيّة عن وضع المراوغة والوضع المعياري.</dd>
-</dl>
-
-<h2 class="landingPageList" dir="rtl" id="مواضيع_متعلقة">مواضيع متعلقة</h2>
-
-<dl>
- <dt dir="rtl"><a href="/ar/docs/Web/HTML/Applying_color">إضافة لون إلى عناصر لغة ترميز النص الفائق</a></dt>
- <dd dir="rtl">هذه المقالة تغطي معظم الطرق التي يمكن استخدامها لإضفاء لون على عنصر، كما تسرد الأجزاء من مستند لغة ترميز النص الفاق التي يمكن تلوينها، وما الخصائص التي يمكنك استخدامها لفعل ذلك. تتضمن هذه المقالة على أمثلة، وروابط لأدوات تصميميّة( أدوات لاختيار ألوان، واختيار التدرجات اللونيّة... إلخ)، وغيرها من الأمور المفيدة.</dd>
-</dl>
-</div>
-</div>
-
-<p dir="rtl"><span class="alllinks"><a href="/ar/docs/tag/%D9%84%D8%BA%D8%A9%20%D8%AA%D8%B1%D9%85%D9%8A%D8%B2%20%D8%A7%D9%84%D9%86%D8%B5%20%D8%A7%D9%84%D9%81%D8%A7%D8%A6%D9%82">عرض المزيد...</a></span></p>
-</section>