Jump to content

[HTML] Creeaza liste


MiHaY111
 Share

Recommended Posts

Salut! In acest tutorial o sa va arat cum sa creeati liste in HTML.

Ne vom folosi de <ul>/</ul> si <ol>/</ol>.

 

Diferenta dintre cele doua este ca, elementele din <ul> arata asa:

  • rpg1
  • rpg2
  • rpg3
  • rpg4

iar cele din <ol> arata asa:

 

  1. rpg1
  2. rpg2
  3. rpg3
  4. rpg4

Deci, facem asa:

<ul>

    <li>text</li>

    <li>text</li>    ===>> elementele vor arata ca mai sus, iar daca mai vrem sa adaugam elemente, mai introducem <li> si </li> 

</ul>

 

si <ol>:

<ol>

   <li>text</li>

   <li>text</li>  ===>> elementele vor arata ca mai sus, iar daca mai vrem sa adaugam elemente, mai introducem <li> si </li> 

<ol>

Edited by MiHaY111
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.