Click here to view more cat photos.
Things cats love:
- cat nip
- laser pointers
- lasagna
Top 3 things cats hate:
- flea treatment
- thunder
- other cats
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">
form
la identificación cat-photo-form
. 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
.");'
```
Click here to view more cat photos.
Things cats love:
Top 3 things cats hate: