Naar inhoud springen

HTML/Overzicht tags/li

Uit Wikibooks
Versie door Vangelis (overleg | bijdragen) op 27 aug 2009 om 09:20 (sub)

HTML

Inhoudsopgave
  1. Verklarende woordenlijst
  2. Overzicht tags
  3. Overzicht attributen
  4. Andere cursussen

Functie

Dient om een item in een lijst aan te duiden. Wordt gebruik bij de geordende lijst(ol), ongeordende lijst(ul), directory lijst(dir) en menu.

Voorbeeld

HTML-code: Een voorbeeld van het gebruik van de li-tag

<ol>
  <li>Wikipedia</li>
  <li>Wikibooks</li>
</ol>

<ul>
  <li>Wikipedia</li>
  <li>Wikibooks</li>
</ul>
  1. Wikipedia
  2. Wikibooks
  • Wikipedia
  • Wikibooks

Optionele attributen

Waarde: A, a, I, i, 1, disc, square of circle

Standaardattributen

class dir id lang style title

Mag staan in

dir, menu, ol, ul

Status

De attributen type en value zijn verouderd in HTML 4.01 en XHTML ondersteunt ze helemaal niet.

Opmerkingen en tips

Gebruik in de plaats van de attributen type en value liever CSS.

Meer informatie

HTML 4-elementen

a · abbr · address · area · b · base · bdi · bdo · blockquote · body · br · button · caption · cite · code · col · colgroup · dd · del · dfn · div · dl · dt · em · fieldset · font · form · head · hr · html · hx · i · iframe · img · input · ins · kbd · label · legend · li · link · map · meta · noscript · object · ol · optgroup · option · p · param · pre · q · s · samp · script · select · span · strong · style · sub · sup · table · tbody · td · textarea · tfoot · th · thead · title · tr · u · ul · var

Nieuwe elementen in HTML 5

article · aside · audio · canvas · command · datalist · details · dialog · embed · figure · footer · header · hgroup · keygen · mark · meter · nav · output · progress · rp · rt · ruby · section · source · time · video

Verouderde elementen

acronym · applet · basefont · big · center · dir · frame · frameset · menu · noframes · small · strike · tt

Informatie afkomstig van https://nl.wikibooks.org Wikibooks NL.
Wikibooks NL is onderdeel van de wikimediafoundation.