الانتقال إلى المحتوى
الأقسام
Fiesta

field-url

النموذج الحقول التي يكتب فيها الشخص، في الحالات التي يضعها فيها نموذج حقيقي. كل واحد منها داخل ‎rst-box‎ بحشوة، لأن هذه هي البطاقة التي يوضع فيها النموذج.

حقل عنوان ويب يقبل example.com مع ‎https://‎ أو بدونه. وعلى ما يقرأ النموذج أن يضيف المخطّط ويتحقق من العنوان.

كل مثال يعمل فعلًا، لكن روابطه لا تؤدي إلى أي مكان. يعرض HTML الترميز الجاهز للنسخ.

مجرّد

معاينة

ضع هذا داخل <section rst-box><form rst-form>.

<div rst-field>
  <label rst-field-label for="fu_bare">الموقع الإلكتروني</label>
  <input rst-input id="fu_bare" name="fu_bare" type="text" inputmode="url" autocomplete="url" autocapitalize="none" autocorrect="off" spellcheck="false">
</div>

مع تلميح

معاينة

ضع هذا داخل <section rst-box><form rst-form>.

<div rst-field>
  <label rst-field-label for="fu_hint">موقع الشركة</label>
  <input rst-input id="fu_hint" name="fu_hint" type="text" inputmode="url" autocomplete="url" autocapitalize="none" autocorrect="off" spellcheck="false" aria-describedby="fu_hint-hint">
  <small rst-field-hint id="fu_hint-hint">يمكنك حذف https.</small>
</div>

مع خطأ

معاينة

ضع هذا داخل <section rst-box><form rst-form>.

<div rst-field>
  <label rst-field-label for="fu_error">الموقع الإلكتروني</label>
  <input rst-input id="fu_error" name="fu_error" type="text" inputmode="url" autocomplete="url" autocapitalize="none" autocorrect="off" spellcheck="false" value="brightwater" aria-invalid="true" aria-describedby="fu_error-error">
  <small rst-field-error id="fu_error-error">أدخل عنوان ويب، مثل example.com.</small>
</div>