Curriculum
Course: HTML Basic
Login

Curriculum

HTML Basic

HTML Introduction

0/1

HTML Editors

0/1

HTML Elements

0/1

HTML Attributes

0/1

HTML Headings

0/1

HTML Paragraphs

0/1

HTML Styles

0/1

HTML Formatting

0/1

HTML Quotation

0/1

HTML Comments

0/1

HTML Colors

0/1

HTML Favicon

0/1

HTML Page Title

0/1

HTML Block and Inline

0/1

HTML Iframes

0/1

HTML Java Script

0/1

HTML File Paths

0/1

HTML - The Head Element

0/1

HTML Style Guide

0/1

HTML Entities

0/1

HTML Symbols

0/1
Text lesson

Lists

HTML lists enable web developers to organize a collection of interconnected items into list structures.

Example

An unordered HTML list:

An ordered HTML list:

• Item

1. First item

• Item

2. Second item

• Item

3. Third item

• Item

4. Fourth item

Unordered HTML List

A bulleted list begins with the <ul> tag, and each item in the list is initiated with the <li> tag. 

By default, list items are indicated with small black circles as bullets.

 

Example

<ul>
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ul>

Ordered HTML List

To begin an ordered list, use the <ol> tag, with each item delineated by the <li> tag. 

By default, list items are numbered sequentially.

Example

<ol>
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ol>

HTML Description Lists

HTML also accommodates description lists, which consist of terms alongside their corresponding descriptions.

The <dl> tag denotes the description list, with each term defined by the <dt> tag and its description provided by the <dd> tag.

Example

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

 

Click to Learn