Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lists | Basic Elements
Introduction to HTML
course content

Conteúdo do Curso

Introduction to HTML

Introduction to HTML

1. Basics Introduction
2. Basic Elements
3. Metadata and the Head Element
4. Advanced Text Formatting Elements
5. Advanced Concepts

Lists

In HTML, there are three types of lists: ordered, unordered, and descriptive.

Ordered List and Unordered List

An ordered list is a list of items numbered, whereas an unordered list is a list of items marked with bullet points.

html

index

css

index

js

index

Here is an example of an unordered list:

html

index

css

index

js

index

This would create a bullet-pointed list with the items 'First item', 'Second item', and 'Third item'.

Both the <ol> and <ul> elements can be used with the type attribute to specify the numbering or bullet point style.

For example, you could use the type attribute to create a list with lowercase letters instead of numbers, like this:

html

index

css

index

js

index

The <li> element can be used with the value attribute to specify the numbering or bullet point style for a specific item in the list.

html

index

css

index

js

index

Descriptive list

A description or definition list lists terms and their corresponding descriptions.

html

index

css

index

js

index

The <dl> element is used to define the description list, and the <dt> and <dd> elements are used to determine the terms and descriptions, respectively.

Here is an example of a description list with multiple descriptions for a single term:

html

index

css

index

js

index

What is the correct HTML tag for creating a term in a descriptive list?

Selecione a resposta correta

Tudo estava claro?

Seção 2. Capítulo 6
We're sorry to hear that something went wrong. What happened?
some-alt