Added some changes in order to help spanish-speaking people to understand this translation.
		
			
				
	
	
	
		
			2.2 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			2.2 KiB
		
	
	
	
	
	
	
	
id, title, challengeType, videoUrl, localeTitle
| id | title | challengeType | videoUrl | localeTitle | 
|---|---|---|---|---|
| bad87fee1348bd9aedf08830 | Add Placeholder Text to a Text Field | 0 | Añadir texto de marcador de posición a un campo de texto | 
Description
placeholder ) es lo que se muestra en su elemento input antes de que su usuario haya ingresado algo. Puede crear texto de marcador de posición de la siguiente manera: <input type="text" placeholder="this is placeholder text"> placeholder de su elemento input texto en "URL de foto de gato". Tests
tests:
  - text: Agregue un atributo <code>placeholder</code> al elemento <code>input</code> existente.
    testString: 'assert($("input[placeholder]").length > 0, "Add a <code>placeholder</code> attribute to the existing text <code>input</code> element.");'
  - text: Establezca el valor de su atributo <code>placeholder</code> en "cat photo URL".
    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 <code>input</code> completado debe tener una sintaxis válida.
    testString: 'assert($("input[type=text]").length > 0 && code.match(/<input((\s+\w+(\s*=\s*(?:".*?"|".*?"|[\^"">\s]+))?)+\s*|\s*)\/?>/gi), "The finished <code>input</code> element should have valid syntax.");'
Challenge Seed
<h2>CatPhotoApp</h2>
<main>
  <p>Click here to view more <a href="#">cat photos</a>.</p>
  <a href="#"><img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."></a>
  <p>Things cats love:</p>
  <ul>
    <li>cat nip</li>
    <li>laser pointers</li>
    <li>lasagna</li>
  </ul>
  <p>Top 3 things cats hate:</p>
  <ol>
    <li>flea treatment</li>
    <li>thunder</li>
    <li>other cats</li>
  </ol>
  <input type="text">
</main>
Solution
// solution required