--- id: bad87fee1348bd9aede08830 title: Create a Form Element challengeType: 0 videoUrl: '' localeTitle: إنشاء عنصر النموذج --- ## Description
يمكنك إنشاء نماذج ويب تقوم بالفعل بإرسال البيانات إلى خادم لا يستخدم أكثر من HTML خالص. يمكنك القيام بذلك عن طريق تحديد إجراء على عنصر form الخاص بك. على سبيل المثال: <form action="/url-where-you-want-to-submit-form-data"></form>
## Instructions
ضع حقل النص داخل عنصر form ، وأضف السمة action="/submit-cat-photo" إلى عنصر النموذج.
## Tests
```yml tests: - text: ضع عنصر إدخال النص داخل عنصر form . testString: 'assert($("form") && $("form").children("input") && $("form").children("input").length > 0, "Nest your text input element within a form element.");' - text: تأكد من احتواء form على سمة action تم تعيينها على /submit-cat-photo testString: 'assert($("form").attr("action") === "/submit-cat-photo", "Make sure your form has an action attribute which is set to /submit-cat-photo");' - text: تأكد من أن عنصر form يحتوي على علامات فتح وغلق جيدة الإنشاء. testString: 'assert(code.match(/<\/form>/g) && code.match(/
/g) && code.match(/<\/form>/g).length === code.match(//g).length, "Make sure your form element has well-formed open and close tags.");' ```
## Challenge Seed
```html

CatPhotoApp

Click here to view more cat photos.

A cute orange cat lying on its back.

Things cats love:

  • cat nip
  • laser pointers
  • lasagna

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
```
## Solution
```js // solution required ```