--- id: bad87fee1348bd9aedf08830 title: Agrega texto provisional a un campo de texto challengeType: 0 videoUrl: 'https://scrimba.com/p/pVMPUv/cKdJDhg' forumTopicId: 16647 dashedName: add-placeholder-text-to-a-text-field --- # --description-- El texto provisional es lo que se muestra en tu elemento de entrada `input` antes de que el usuario haya ingresado nada. Puedes crear texto provisional así: `` **Note:** Recuerda que los elementos `input` se cierran automáticamente. # --instructions-- Establece el valor provisional `placeholder` de tu entrada de texto `input` como "cat photo URL". # --hints-- Debes agregar un atributo `placeholder` al elemento de entrada de texto `input` existente. ```js assert($('input[placeholder]').length > 0); ``` Debes establecer el valor de tu atributo provisional `placeholder` como `cat photo URL`. ```js assert( $('input') && $('input').attr('placeholder') && $('input') .attr('placeholder') .match(/cat\s+photo\s+URL/gi) ); ``` El elemento `input` final no debe tener una etiqueta de cierre. ```js assert(!code.match(/.*<\/input>/gi)); ``` El elemento `input` final debe tener una sintaxis válida. ```js assert($('input[type=text]').length > 0); ``` # --seed-- ## --seed-contents-- ```html

CatPhotoApp

Click here to view more cat photos.

A cute orange cat lying on its back.

Things cats love:

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
``` # --solutions-- ```html

CatPhotoApp

Click here to view more cat photos.

A cute orange cat lying on its back.

Things cats love:

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
```