--- id: bad87fee1348bd9aede08830 title: Create a Form Element challengeType: 0 videoUrl: '' localeTitle: Crear un elemento de formulario --- ## Description
Puede crear formularios web que envíen datos reales a un servidor usando nada más que HTML. Puedes hacerlo especificando un action en tu elemento form . Por ejemplo: <form action="/url-where-you-want-to-submit-form-data"></form>
## Instructions
Anida el campo de texto dentro de un elemento form y agrega el atributo action="/submit-cat-photo" al elemento formulario.
## Tests
```yml tests: - text: Anida el elemento de entrada de texto dentro de un elemento de form . testString: 'assert($("form") && $("form").children("input") && $("form").children("input").length > 0, "Nest your text input element within a form element.");' - text: Asegúrese de que su form tenga un atributo action y cuyo valor sea /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: Asegúrese de que su elemento form tenga las etiquetas de apertura y cierre bien formadas. 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 ```