2.6 KiB
2.6 KiB
id | title | challengeType | videoUrl | localeTitle |
---|---|---|---|---|
bad87fee1348bd9aedf08827 | Create a Bulleted Unordered List | 0 | Crear una lista desordenada con viñetas |
Description
unordered lists
, o listas de estilo de punto de bala. Las listas desordenadas comienzan con un elemento <ul>
apertura, seguido de cualquier número de elementos <li>
. Por último, las listas no ordenadas se cierran con </ul>
Por ejemplo: <ul>crearía una lista de estilo de punto de bala de "leche" y "queso".
<li> leche </li>
<li> queso </li>
</ul>
Instructions
p
y crea una lista desordenada de tres cosas que los gatos adoran al final de la página. Tests
tests:
- text: Crear un elemento <code>ul</code> .
testString: 'assert($("ul").length > 0, "Create a <code>ul</code> element.");'
- text: Debes tener tres elementos <code>li</code> dentro de tu elemento <code>ul</code> .
testString: 'assert($("ul li").length > 2, "You should have three <code>li</code> elements within your <code>ul</code> element.");'
- text: Asegúrese de que su elemento <code>ul</code> tenga una etiqueta de cierre.
testString: 'assert(code.match(/<\/ul>/gi) && code.match(/<ul/gi) && code.match(/<\/ul>/gi).length === code.match(/<ul/gi).length, "Make sure your <code>ul</code> element has a closing tag.");'
- text: Asegúrese de que sus elementos <code>li</code> tengan etiquetas de cierre.
testString: 'assert(code.match(/<\/li>/gi) && code.match(/<li[\s>]/gi) && code.match(/<\/li>/gi).length === code.match(/<li[\s>]/gi).length, "Make sure your <code>li</code> elements have closing tags.");'
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>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
</main>
Solution
// solution required