English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML: <ul> Tag

Der HTML <ul>-Tag definiert in einem HTML-Dokument eine unsortierte Liste. Dieser Tag wird auch als <ul>-Element bezeichnet.

Online-Beispiel

Unsortierte HTML-Liste: ul

!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Verwendung des HTML-ul-Tags (Grundlagen-Tutorial-Web w3(codebox.com)</title>
</head>
<body>
<ul>
  <li>First item</li>
  <li>Second item</li>
  <li>Third item</li>
  <li>Fourth item</li>
</ul>
</body>
</html>
Testen Sie es heraus ‹/›

In diesem HTML5In der Dokumentbeispiel verwenden wir den <ul>-Tag, um eine unsortierte Liste zu erstellen, die aus vier Listenpunkten besteht, die in den vier <li>-Tags gefunden werden.

Browser-Kompatibilität

IEFirefoxOperaChromeSafari

Alle gängigen Browser unterstützen den <ul>-Tag。

Definition und Verwendung der Tags

Der <ul>-Tag definiert eine unsortierte Liste。

Verwenden Sie den <ul>-Tag zusammen mit <li> Tags werden gemeinsam verwendet, um eine unsortierte Liste zu erstellen。

Die <ul>-Tag wird von <li>-Tags组成。

Use <ul> tags when the list items do not have a numbered sequence.

You can nest <ol>, <ul>, and <menu> lists.

Tips and Notes

Tip:Use CSS to define the style of the list.

Tip:Use<ol> Create ordered lists with

HTML 4.01 and HTML5between

The difference between 4.01 In HTML, the "compact" and "type" attributes are deprecated. HTML5 Then these two attributes are not supported.

Attribute

AttributeValueDescription
compactcompactHTML5 Not supported. HTML 4.01 Deprecated. Specify a list presentation effect that is more compact than the normal case.
typedisc
square
circle
HTML5 Not supported. HTML 4.01 Deprecated. Specify the type of bullet for list items.

Global Attributes

<ul> Tag Supports HTML Global Attributes.

Event Attributes

<ul> Tag Supports HTML Event Attributes.

Try the online example

Different Types of Unordered Lists
This example demonstrates different types of unordered lists.

Nested Lists
This example demonstrates how to nest lists.

Nested Lists 2
This example demonstrates more complex nested lists.

Custom List
This example demonstrates a definition list.

Related Articles

HTML Tutorial:HTML List