Jump to content
Sign in to follow this  
Tzunyo

Elemente de baza in html - liste

Recommended Posts

Listele in html sunt ordonate si neordonate. De asemenea mai puteti crea si liste de definitii.
Pentru a introduce o lista ordonata/numerotata folositi tagul <ol></ol>.

<html>
  <body>
    <h4>O Lista Ordonata:</h4>
    <ol>
      <li>Cafea</li>
      <li>Ceai</li>
      <li>Bere</li>
    </ol>
  </body>
</html> 

 
Tagul <li> este folosit pentru a introduce un item in lista.
Pentru liste neordonate/nenumerotate folositi tagul <ul></ul>

<html>
  <body>
    <h4>Lista nenumerotata:</h4>
    <ul>
      <li>Lapte</li>
      <li>Suc</li>
      <li>Vin
      </li>
    </ul>
  </body>
</html>

 
 
De asemenea si in cadrul acestei liste, pentru a introduce un nou item, folositi tagul <li>.
O lista de definitii este marcata prin tagul <dl>. In aceste liste tagul <dt> introduce un item care apoi va fi descris cu ajutorul tagului <dd>.
Exemplu:

<dl>
  <dt>Coffee</dt>
  <dd>- black hot drink</dd>
  <dt>Milk</dt>
  <dd>- white cold drink</dd>
</dl>

© Tzunyo

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...