--- id: bad87eee1348bd9aede07836 title: Set the id of an Element challengeType: 0 videoUrl: '' localeTitle: Establecer la id de un elemento --- ## Description
Además de las clases, cada elemento HTML también puede tener un atributo id . El uso de atributos de id tiene varios beneficios: puede usar una id para diseñar un solo elemento y más adelante aprenderá que puede usarlos para seleccionar y modificar elementos específicos con JavaScript. id atributos de id deben ser únicos. Los navegadores no harán cumplir esto, pero es una buena práctica ampliamente aceptada. Entonces, por favor, no le dé a más de un elemento el mismo atributo de id . Aquí hay un ejemplo de cómo le das a tu elemento h2 el ID de cat-photo-app : <h2 id="cat-photo-app">
## Instructions
Dale a tu elemento de form la identificación cat-photo-form .
## Tests
```yml tests: - text: Dale a tu elemento de form la identificación de cat-photo-form . testString: 'assert($("form").attr("id") === "cat-photo-form", "Give your form element the id of cat-photo-form.");' ```
## 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 ```