Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
LABORATORY 3 theory.doc
Скачиваний:
0
Добавлен:
01.07.2025
Размер:
565.25 Кб
Скачать

«Lists as a tool for structuring»

  1. Create of lists

HTML can have Unordered Lists, Ordered Lists, or Description Lists. Any list created according to next scheme:

<opening tag of list>

< tag of list element > text of list element < tag of list element > text of list element

< tag of list element > text of list element

</ closing tag of list >

Ordered Lists:

  1. Element of list 1

  2. Element of list 1

  3. Element of list 1

Unordered Lists:

  • Element of list 1

  • Element of list 1

  • Element of list 1

Description Lists:

Definition 1

Description of definition 1

Definition 2

Description of definition 2

Definition 3

Description of definition 3

Html List Tags

Tag

Description

<ul>

Defines an unordered list

<ol>

Defines an ordered list

<li>

Defines a list item

<dl>

Defines a description list

<dt>

Defines the term in a description list

<dd>

Defines the description in a description list

The <LI> tag has attributes:

Attribute

Value

Description

type

1 A a I i disc square circle

Specifies which kind of bullet point will be used

value

number

Specifies the value of a list item. The following list items will increment from that number (only for <ol> lists)

You can use any tags into any lists. For example, you can highlight Definition 1 in bold, if you writing <B>Definition 1</B>.

  1. Ordered Lists

An ordered list starts with the <ol> tag. Each list item starts with the <li> tag. The list items will be marked with numbers.

Example

<ol>   <li> Кофе

  <li> Молоко </ol>

The <OL> tag has attributes:

Type

Description

type="1"

The list items will be numbered with numbers (default)

type="A"

The list items will be numbered with uppercase letters

type="a"

The list items will be numbered with lowercase letters

type="I"

The list items will be numbered with uppercase roman numbers

type="i"

The list items will be numbered with lowercase roman numbers

start

Allow to change numeration of list

Example

Numbers:

<ol type="1">   <li>кофе   <li>чай   <li>молоко

</ol>

Upper Case:

<ol type="A">  <li>кофе   <li>чай   <li>молоко </ol>

Lower Case:

<ol type="a"> <li>кофе   <li>чай   <li>молоко </ol>

Roman Upper Case:

<ol type="I"> <li>кофе   <li>чай   <li>молоко </ol>

Roman Lower Case:

<ol type="i">  <li>кофе   <li>чай   <li>молоко </ol>

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]