Listas
Esta página necesita un navegador reciente (con soporte para SharedArrayBuffer). Por favor, actualiza Chrome, Edge, Firefox o Safari a la última versión.
English
Lists
- Use a list when you have several items.
- A bullet list uses
<ul>(unordered list). - Each item goes inside its own
<li>(list item).

English
<ul>
<li>Milk</li>
<li>Bread</li>
<li>Eggs</li>
</ul>
English
Numbered lists
- For steps in order, use
<ol>(ordered list). - The browser adds the numbers 1, 2, 3 for you.
- The items are still
<li>— only the outer tag changes.
English
<ol>
<li>Open the box</li>
<li>Add water</li>
<li>Stir</li>
</ol>
English
Common mistakes
<ul>is bullets,<ol>is numbers; each item goes in<li>.- Close every
<li>.
English
Now you try
- Notice how the
<li>items sit inside the<ul>or<ol>. - Build one of each below.
Dificultad 1/5 · 100 monedas + un pequeño bono en el primer intento de hoy
Make a bullet list with tres items: Apples, Bananas, Cherries. Put each one in its own <li>.
Dificultad 1/5 · 100 monedas + un pequeño bono en el primer intento de hoy
Make a numbered list with at least two steps. Use <ol> with <li> items inside.
Dificultad 1/5 · 100 monedas + un pequeño bono en el primer intento de hoy
Lists can sit inside lists. Inside the <li> for Fruit, add a second <ul> with two items, Apple y Pear.