Wprowadzenie do listy uporządkowanej HTML
W tej sekcji nauczymy się, jak zaimplementować Listy uporządkowane w HTML. Jak opisać lub wyświetlić uporządkowaną listę? Jest to bardzo proste i łatwe, służą do opisu listy informacji w treści. Inną techniką jest to, że pojedyncza lista może zawierać wiele elementów list. Listy w HTML można podzielić na trzy typy, są to:
- Uporządkowana lista
- Lista nieuporządkowana
- Lista definicji
W tym artykule przejdziemy do specyfikacji uporządkowanej listy z przykładem. Lista uporządkowana określa określone uporządkowane informacje, gdy lista jest tworzona, na przykład pokazuje informacje o rzędnych lub numerację informacji.
Składnia listy uporządkowanej
Lista uporządkowana jest tworzona za pomocą znacznika o nazwie
- element i kończy się na
Przykłady uporządkowanej listy
Zobaczmy przykład wymieniony poniżej:
Przykład 1
HTML Ordered List
There are 6 different airlines:
Jet Blue Airlines
Frontier Airlines
South West Airlines
Spirit Airlines
United Airlines
America Airlines
HTML Ordered List
There are 6 different airlines:
Jet Blue Airlines
Frontier Airlines
South West Airlines
Spirit Airlines
United Airlines
America Airlines
HTML Ordered List
There are 6 different airlines:
Jet Blue Airlines
Frontier Airlines
South West Airlines
Spirit Airlines
United Airlines
America Airlines
HTML Ordered List
There are 6 different airlines:
Jet Blue Airlines
Frontier Airlines
South West Airlines
Spirit Airlines
United Airlines
America Airlines
HTML Ordered List
There are 6 different airlines:
Jet Blue Airlines
Frontier Airlines
South West Airlines
Spirit Airlines
United Airlines
America Airlines
HTML Ordered List
There are 6 different airlines:
Jet Blue Airlines
Frontier Airlines
South West Airlines
Spirit Airlines
United Airlines
America Airlines
HTML Ordered List
There are 6 different airlines:
Jet Blue Airlines
Frontier Airlines
South West Airlines
Spirit Airlines
United Airlines
America Airlines
HTML Ordered List
There are 6 different airlines:
Jet Blue Airlines
Frontier Airlines
South West Airlines
Spirit Airlines
United Airlines
America Airlines
HTML Ordered List
There are 6 different airlines:
Jet Blue Airlines
Frontier Airlines
South West Airlines
Spirit Airlines
United Airlines
America Airlines
HTML Ordered List
There are 6 different airlines:
Jet Blue Airlines
Frontier Airlines
South West Airlines
Spirit Airlines
United Airlines
America Airlines
HTML Ordered List
There are 6 different airlines:
Jet Blue Airlines
Frontier Airlines
South West Airlines
Spirit Airlines
United Airlines
America Airlines
HTML Ordered List
There are 6 different airlines:
Jet Blue Airlines
Frontier Airlines
South West Airlines
Spirit Airlines
United Airlines
America Airlines
HTML Ordered List
There are 6 different airlines:
Jet Blue Airlines
Frontier Airlines
South West Airlines
Spirit Airlines
United Airlines
America Airlines
HTML Ordered List
There are 6 different airlines:
Jet Blue Airlines
Frontier Airlines
South West Airlines
Spirit Airlines
United Airlines
America Airlines
HTML Ordered List
There are 6 different airlines:
Jet Blue Airlines
Frontier Airlines
South West Airlines
Spirit Airlines
United Airlines
America Airlines
HTML Ordered List
There are 6 different airlines:
Jet Blue Airlines
Frontier Airlines
South West Airlines
Spirit Airlines
United Airlines
America Airlines
Wynik:
To da ci wynik jak
Przykład nr 2
Lista uporządkowana z kolorami. W poniższym przykładzie użyliśmy pewnej właściwości counter, która definiuje elementy listy automatycznego zliczania w
HTML Ordered List with colors
ol li (
counter-increment: list;
list-style-type: none;
position: relative;
)
ol li:before (
color: #ff0000;
content: counter(list) ".";
left: -22px;
position: absolute;
text-align: center;
width: 24px;
)
Norway is a Scandinavian Country
Oslo is the capital city
norway is known for its beauty, hiking, fishing
Ranked among the toppest country in europe
HTML Ordered List with colors
ol li (
counter-increment: list;
list-style-type: none;
position: relative;
)
ol li:before (
color: #ff0000;
content: counter(list) ".";
left: -22px;
position: absolute;
text-align: center;
width: 24px;
)
Norway is a Scandinavian Country
Oslo is the capital city
norway is known for its beauty, hiking, fishing
Ranked among the toppest country in europe
HTML Ordered List with colors
ol li (
counter-increment: list;
list-style-type: none;
position: relative;
)
ol li:before (
color: #ff0000;
content: counter(list) ".";
left: -22px;
position: absolute;
text-align: center;
width: 24px;
)
Norway is a Scandinavian Country
Oslo is the capital city
norway is known for its beauty, hiking, fishing
Ranked among the toppest country in europe
HTML Ordered List with colors
ol li (
counter-increment: list;
list-style-type: none;
position: relative;
)
ol li:before (
color: #ff0000;
content: counter(list) ".";
left: -22px;
position: absolute;
text-align: center;
width: 24px;
)
Norway is a Scandinavian Country
Oslo is the capital city
norway is known for its beauty, hiking, fishing
Ranked among the toppest country in europe
HTML Ordered List with colors
ol li (
counter-increment: list;
list-style-type: none;
position: relative;
)
ol li:before (
color: #ff0000;
content: counter(list) ".";
left: -22px;
position: absolute;
text-align: center;
width: 24px;
)
Norway is a Scandinavian Country
Oslo is the capital city
norway is known for its beauty, hiking, fishing
Ranked among the toppest country in europe
HTML Ordered List with colors
ol li (
counter-increment: list;
list-style-type: none;
position: relative;
)
ol li:before (
color: #ff0000;
content: counter(list) ".";
left: -22px;
position: absolute;
text-align: center;
width: 24px;
)
Norway is a Scandinavian Country
Oslo is the capital city
norway is known for its beauty, hiking, fishing
Ranked among the toppest country in europe
HTML Ordered List with colors
ol li (
counter-increment: list;
list-style-type: none;
position: relative;
)
ol li:before (
color: #ff0000;
content: counter(list) ".";
left: -22px;
position: absolute;
text-align: center;
width: 24px;
)
Norway is a Scandinavian Country
Oslo is the capital city
norway is known for its beauty, hiking, fishing
Ranked among the toppest country in europe
HTML Ordered List with colors
ol li (
counter-increment: list;
list-style-type: none;
position: relative;
)
ol li:before (
color: #ff0000;
content: counter(list) ".";
left: -22px;
position: absolute;
text-align: center;
width: 24px;
)
Norway is a Scandinavian Country
Oslo is the capital city
norway is known for its beauty, hiking, fishing
Ranked among the toppest country in europe
HTML Ordered List with colors
ol li (
counter-increment: list;
list-style-type: none;
position: relative;
)
ol li:before (
color: #ff0000;
content: counter(list) ".";
left: -22px;
position: absolute;
text-align: center;
width: 24px;
)
Norway is a Scandinavian Country
Oslo is the capital city
norway is known for its beauty, hiking, fishing
Ranked among the toppest country in europe
HTML Ordered List with colors
ol li (
counter-increment: list;
list-style-type: none;
position: relative;
)
ol li:before (
color: #ff0000;
content: counter(list) ".";
left: -22px;
position: absolute;
text-align: center;
width: 24px;
)
Norway is a Scandinavian Country
Oslo is the capital city
norway is known for its beauty, hiking, fishing
Ranked among the toppest country in europe
HTML Ordered List with colors
ol li (
counter-increment: list;
list-style-type: none;
position: relative;
)
ol li:before (
color: #ff0000;
content: counter(list) ".";
left: -22px;
position: absolute;
text-align: center;
width: 24px;
)
Norway is a Scandinavian Country
Oslo is the capital city
norway is known for its beauty, hiking, fishing
Ranked among the toppest country in europe
Wynik:
Typy atrybutów dla listy uporządkowanej HTML
Aby przedstawić uporządkowaną listę, istnieje pięć ważnych rodzajów atrybutów dla tego znacznika. Jako HTML
- Tag reprezentuje listę pozycji na liście uporządkowanej. Mogą być w porządku alfanumerycznym, numerycznym lub po prostu alfabetycznym, pod warunkiem że najważniejsza jest kolejność. Oto możliwe atrybuty listy uporządkowanej:
- type = 'a' - porządek alfabetyczny
- type = 'A' - Nadaje duże litery Porządek alfabetyczny
- type = 'i' - Podaje małe litery alfabetu rzymskiego
- type = 'I'- Podaje wielkie litery rzymskie
- kroki
- Powinna być wcześniejsza wiedza na temat programowania SAS i R.
- Powinny mieć duży kaliber kreatywności i analizy
- Alabama
- Montgomery
- Arizona
- Feniks
- Kalifornia
- Sacramento
- Nowa koszulka
- Trenton
- Waszyngton
- Olympia
- Pennsylvannia
- Harisburg
- Uporządkowana lista
- lista nieuporządkowana
- Lista definicji
- Wprowadzenie do listy
- Składnia listy
- Typy z przykładem
- Migawki
1. Atrybut Type
Ten atrybut określa typ numeracji, który ma być zastosowany na liście.
Ten rodzaj numeracji wymieniono poniżej:
1. Typ atrybutu = „a”
Do utworzenia listy alfabetycznie małymi literami używa się tego typu. Poniższy przykład pokazuje uporządkowaną listę małymi literami i zapisano ją kursywą.
Przykład:
HTML Ordered List types
ol li span (
font-weight: normal;
)
Czy wiedziałeś o tym:
Umiejętności wymagane, aby zostać naukowcem danych
Wynik:
2. Typ atrybutu = „A”
Uporządkowana lista może mieć typ atrybutu małej litery alfabetu. Poniższy przykład pokazuje, jak używać tego atrybutu w strukturze listy, a także jak pogrubić litery. Aby pogrubiona lista była pogrubiona, należy ją zadeklarować za pomocą znacznika.
Przykład:
Example for Nested list
Stolice Stanów Zjednoczonych
ol (font-weight: pogrubiony;
)
ol li span (
grubość czcionki: normalna;
)
Wynik:
3. Typ atrybutu = „i”
Ta funkcja wskazuje małe litery rzymskie.
Przykład:
HTML Ordered List types
Samouczek listy HTML EDUCBA:
wynik:
4. Typ atrybutu = „I”
Ta funkcja podaje dane wyjściowe w górnych cyfrach rzymskich.
Przykład:
HTML Ordered List Demo
List of Vegetables
Carrot
Radish
Sweet Corn
Fruits List
Pomegrante
Bananas
Pears
HTML Ordered List Demo
List of Vegetables
Carrot
Radish
Sweet Corn
Fruits List
Pomegrante
Bananas
Pears
HTML Ordered List Demo
List of Vegetables
Carrot
Radish
Sweet Corn
Fruits List
Pomegrante
Bananas
Pears
HTML Ordered List Demo
List of Vegetables
Carrot
Radish
Sweet Corn
Fruits List
Pomegrante
Bananas
Pears
HTML Ordered List Demo
List of Vegetables
Carrot
Radish
Sweet Corn
Fruits List
Pomegrante
Bananas
Pears
HTML Ordered List Demo
List of Vegetables
Carrot
Radish
Sweet Corn
Fruits List
Pomegrante
Bananas
Pears
HTML Ordered List Demo
List of Vegetables
Carrot
Radish
Sweet Corn
Fruits List
Pomegrante
Bananas
Pears
HTML Ordered List Demo
List of Vegetables
Carrot
Radish
Sweet Corn
Fruits List
Pomegrante
Bananas
Pears
HTML Ordered List Demo
List of Vegetables
Carrot
Radish
Sweet Corn
Fruits List
Pomegrante
Bananas
Pears
HTML Ordered List Demo
List of Vegetables
Carrot
Radish
Sweet Corn
Fruits List
Pomegrante
Bananas
Pears
HTML Ordered List Demo
List of Vegetables
Carrot
Radish
Sweet Corn
Fruits List
Pomegrante
Bananas
Pears
HTML Ordered List Demo
List of Vegetables
Carrot
Radish
Sweet Corn
Fruits List
Pomegrante
Bananas
Pears
HTML Ordered List Demo
List of Vegetables
Carrot
Radish
Sweet Corn
Fruits List
Pomegrante
Bananas
Pears
HTML Ordered List Demo
List of Vegetables
Carrot
Radish
Sweet Corn
Fruits List
Pomegrante
Bananas
Pears
HTML Ordered List Demo
List of Vegetables
Carrot
Radish
Sweet Corn
Fruits List
Pomegrante
Bananas
Pears
HTML Ordered List Demo
List of Vegetables
Carrot
Radish
Sweet Corn
Fruits List
Pomegrante
Bananas
Pears
HTML Ordered List Demo
List of Vegetables
Carrot
Radish
Sweet Corn
Fruits List
Pomegrante
Bananas
Pears
HTML Ordered List Demo
List of Vegetables
Carrot
Radish
Sweet Corn
Fruits List
Pomegrante
Bananas
Pears
HTML Ordered List Demo
List of Vegetables
Carrot
Radish
Sweet Corn
Fruits List
Pomegrante
Bananas
Pears
HTML Ordered List Demo
List of Vegetables
Carrot
Radish
Sweet Corn
Fruits List
Pomegrante
Bananas
Pears
HTML Ordered List Demo
List of Vegetables
Carrot
Radish
Sweet Corn
Fruits List
Pomegrante
Bananas
Pears- Katar znany ze swoich zasobów ropy naftowej i petrochemicznej
- Norwegia znana z piękna przyrody dzięki producentowi ropy naftowej
- Singapur z globalnym centrum handlowym
HTML Ordered List
How to do Balle Technique
Turn out
Alignment
Pointed Toes
Balle Steps
Seven Movements
Plier
Etendre
Glisser
Eliever
HTML Ordered List
How to do Balle Technique
Turn out
Alignment
Pointed Toes
Balle Steps
Seven Movements
Plier
Etendre
Glisser
Eliever
HTML Ordered List
How to do Balle Technique
Turn out
Alignment
Pointed Toes
Balle Steps
Seven Movements
Plier
Etendre
Glisser
Eliever
HTML Ordered List
How to do Balle Technique
Turn out
Alignment
Pointed Toes
Balle Steps
Seven Movements
Plier
Etendre
Glisser
Eliever
HTML Ordered List
How to do Balle Technique
Turn out
Alignment
Pointed Toes
Balle Steps
Seven Movements
Plier
Etendre
Glisser
Eliever
HTML Ordered List
How to do Balle Technique
Turn out
Alignment
Pointed Toes
Balle Steps
Seven Movements
Plier
Etendre
Glisser
Eliever
HTML Ordered List
How to do Balle Technique
Turn out
Alignment
Pointed Toes
Balle Steps
Seven Movements
Plier
Etendre
Glisser
Eliever
HTML Ordered List
How to do Balle Technique
Turn out
Alignment
Pointed Toes
Balle Steps
Seven Movements
Plier
Etendre
Glisser
Eliever- znacznik użyty tutaj jest bardzo prosty do zapamiętania.
Polecane artykuły
To był przewodnik po liście uporządkowanej HTML. Tutaj omawiamy ich typy z różnymi atrybutami HTML wraz z przykładami. Możesz także zapoznać się z następującymi artykułami, aby dowiedzieć się więcej -
- Ramki HTML
- Atrybut stylu HTML
- Co to jest HTML5?
- Edytory tekstu HTML
HTML Ordered List Demo
List of Vegetables
Carrot
Radish
Sweet Corn
Fruits List
Pomegrante
Bananas
Pears
HTML Ordered List Demo
List of Vegetables
Carrot
Radish
Sweet Corn
Fruits List
Pomegrante
Bananas
Pears
Wynik:
2. Atrybut początkowy
Atrybut początkowy określa wartość początkową dla uporządkowanych numerów list. Możesz zacząć od dowolnej liczby od początku, a nie tylko od domyślnej liczby „1”. Przykład: start = 6. Jest teraz używany w HTML5.
Przykład:
W poniższym przykładzie użyłem typu stylu do upper_alpha wraz z początkiem od = 3, dlatego wynik jest pokazany z 'C'.
Example for Nested list
NAJBOGATSZE KRAJE NA ŚWIECIE
ol (list-style-type: upper-alpha;font-weight: pogrubiony;
)
ol li span (
font-weight: normal;)
Wynik:
3. Odwrotny atrybut
Jest to nowy atrybut wprowadzony w HTML5, który wskazuje, że elementy są wyświetlane w odwrotnej kolejności w przeglądarkach internetowych. Używać,
- jest to atrybut boolowski przyjmujący dowolną wartość w celu odwrócenia licznika. Zdeklarowany
- w
- etykietka.
Przykład:
HTML Ordered List
How to do Balle Technique
Turn out
Alignment
Pointed Toes
Balle Steps
Seven Movements
Plier
Etendre
Glisser
Eliever
HTML Ordered List
How to do Balle Technique
Turn out
Alignment
Pointed Toes
Balle Steps
Seven Movements
Plier
Etendre
Glisser
Eliever
HTML Ordered List
How to do Balle Technique
Turn out
Alignment
Pointed Toes
Balle Steps
Seven Movements
Plier
Etendre
Glisser
Eliever
HTML Ordered List
How to do Balle Technique
Turn out
Alignment
Pointed Toes
Balle Steps
Seven Movements
Plier
Etendre
Glisser
Eliever
HTML Ordered List
How to do Balle Technique
Turn out
Alignment
Pointed Toes
Balle Steps
Seven Movements
Plier
Etendre
Glisser
Eliever
HTML Ordered List
How to do Balle Technique
Turn out
Alignment
Pointed Toes
Balle Steps
Seven Movements
Plier
Etendre
Glisser
Eliever
HTML Ordered List
How to do Balle Technique
Turn out
Alignment
Pointed Toes
Balle Steps
Seven Movements
Plier
Etendre
Glisser
Eliever
HTML Ordered List
How to do Balle Technique
Turn out
Alignment
Pointed Toes
Balle Steps
Seven Movements
Plier
Etendre
Glisser
Eliever
HTML Ordered List
How to do Balle Technique
Turn out
Alignment
Pointed Toes
Balle Steps
Seven Movements
Plier
Etendre
Glisser
Eliever
HTML Ordered List
How to do Balle Technique
Turn out
Alignment
Pointed Toes
Balle Steps
Seven Movements
Plier
Etendre
Glisser
Eliever
HTML Ordered List
How to do Balle Technique
Turn out
Alignment
Pointed Toes
Balle Steps
Seven Movements
Plier
Etendre
Glisser
Eliever
HTML Ordered List
How to do Balle Technique
Turn out
Alignment
Pointed Toes
Balle Steps
Seven Movements
Plier
Etendre
Glisser
Eliever
HTML Ordered List
How to do Balle Technique
Turn out
Alignment
Pointed Toes
Balle Steps
Seven Movements
Plier
Etendre
Glisser
Eliever
HTML Ordered List
How to do Balle Technique
Turn out
Alignment
Pointed Toes
Balle Steps
Seven Movements
Plier
Etendre
Glisser
Eliever
HTML Ordered List
How to do Balle Technique
Turn out
Alignment
Pointed Toes
Balle Steps
Seven Movements
Plier
Etendre
Glisser
Eliever
HTML Ordered List
How to do Balle Technique
Turn out
Alignment
Pointed Toes
Balle Steps
Seven Movements
Plier
Etendre
Glisser
Eliever
HTML Ordered List
How to do Balle Technique
Turn out
Alignment
Pointed Toes
Balle Steps
Seven Movements
Plier
Etendre
Glisser
Eliever
HTML Ordered List
How to do Balle Technique
Turn out
Alignment
Pointed Toes
Balle Steps
Seven Movements
Plier
Etendre
Glisser
Eliever
HTML Ordered List
How to do Balle Technique
Turn out
Alignment
Pointed Toes
Balle Steps
Seven Movements
Plier
Etendre
Glisser
Eliever
HTML Ordered List
How to do Balle Technique
Turn out
Alignment
Pointed Toes
Balle Steps
Seven Movements
Plier
Etendre
Glisser
Eliever
Wynik:
Wniosek
Dlatego do końca podsumowałem, co zrobiła uporządkowana lista i jest ona prawie obsługiwana we wszystkich przeglądarkach. Oczywiście możesz utworzyć dowolną liczbę list w elemencie tagu HTML, w tym artykule skupiliśmy się na wybranych przykładach, aby zrozumieć podstawową implementację. Zatem nauka tego tematu może nie być najtrudniejszą pracą, jak