--- id: bad87fee1348bd9aedf08830 title: Add Placeholder Text to a Text Field challengeType: 0 guideUrl: 'https://spanish.freecodecamp.org/guide/certificates/add-placeholder-text-to-a-text-field' videoUrl: '' localeTitle: Añadir texto de marcador de posición a un campo de texto --- ## Description
El texto de marcador de posición es lo que se muestra en su elemento de input antes de que su usuario haya ingresado algo. Puede crear texto de marcador de posición de la siguiente forma: <input type="text" placeholder="this is placeholder text">
## Instructions
Establezca el valor de placeholder de placeholder de su input texto en "URL de foto de gato".
## Tests
```yml tests: - text: Agregue un atributo de placeholder al elemento de input texto existente. testString: 'assert($("input[placeholder]").length > 0, "Add a placeholder attribute to the existing text input element.");' - text: Establezca el valor de su atributo de marcador de posición en "URL de foto de gato". testString: 'assert($("input") && $("input").attr("placeholder") && $("input").attr("placeholder").match(/cat\s+photo\s+URL/gi), "Set the value of your placeholder attribute to "cat photo URL".");' - text: El elemento de input terminado debe tener una sintaxis válida. testString: 'assert($("input[type=text]").length > 0 && code.match(/\s]+))?)+\s*|\s*)\/?>/gi), "The finished input element should have valid syntax.");' ```
## 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 ```