-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path03-lists.html
205 lines (176 loc) · 6.24 KB
/
03-lists.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Lists</title>
<style>
html {
font-family: Arial, Helvetica, sans-serif;
}
/* --------- unordered list --------- */
ul.custom-style {
list-style-type: square;
list-style-position: outside;
}
/* pseudo class ::marker - styling li marker */
ul li.important::marker {
color: red;
}
ul.reset-style {
list-style-type: none;
/* padding: 0; */
}
ul.image-marker {
list-style-image: url(./images/ukraine.png);
}
/* --------- ordered list --------- */
ol.custom-style {
list-style-type: upper-roman;
}
/* --------- definition list --------- */
dt {
background-color: darkblue;
color: white;
padding: 10px;
text-align: center;
/* border-bottom: 1px solid white; */
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
dd {
background-color: rgb(19, 19, 172);
color: white;
margin-left: 0;
padding: 10px;
margin-bottom: 4px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
}
/* --------- custom marker content --------- */
ol.custom-marker {
list-style-type: none;
counter-reset: count;
}
/* pseudo elemens ::before ::after - add content before/after elements */
ol.custom-marker li::before {
color: darkblue;
content: '[' counter(count) '] ';
counter-increment: count;
}
h2::before,
h2::after {
content: '*';
color: red;
}
/* --------- multilevel list styling --------- */
/* level 1> */
ol {
color: gray;
}
/* level 2> */
ol ol {
list-style-type: georgian;
color: darkblue;
}
ol ul {
color: darkgreen;
}
/* level 3> */
ol ul ul {
color: brown;
}
</style>
</head>
<body>
<h1>Working with Lists</h1>
<h2>Unordered Lists</h2>
<!-- Emmet: ul>li*5>lorem7 -->
<h3>Custom Style</h3>
<ul class="custom-style">
<li>Lorem ipsum dolor sit amet consectetur adipisicing.</li>
<li>Illum necessitatibus reiciendis iure consequatur esse unde.</li>
<li class="important">Ducimus corporis exercitationem temporibus sed nobis ratione.</li>
<li>Quod odit placeat quis adipisci illum ea. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit.</li>
<li>Labore officia, aperiam ea dolorem earum quibusdam?</li>
</ul>
<h3>Reseted Style</h3>
<ul class="reset-style">
<li>Lorem ipsum dolor sit amet.</li>
<li>Non aliquam animi eius voluptatibus.</li>
<li>Architecto quia officiis quo reprehenderit.</li>
<li>Fugiat beatae est animi iste.</li>
</ul>
<h3>Image Maker Style</h3>
<ul class="image-marker">
<li>Lorem ipsum dolor sit amet.</li>
<li>Non aliquam animi eius voluptatibus.</li>
<li>Architecto quia officiis quo reprehenderit.</li>
<li>Fugiat beatae est animi iste.</li>
</ul>
<h2>Ordered Lists</h2>
<ol class="custom-style">
<li>Lorem ipsum dolor sit amet consectetur.</li>
<li>Eaque, ipsam sapiente. Necessitatibus, quos non?</li>
<li>Deleniti veniam rem repudiandae quod tenetur!</li>
<li>Error deserunt tempore officia explicabo repudiandae.</li>
<li>Rem quas nihil voluptatem quam nam.</li>
</ol>
<h3>Using Arrtibutes</h3>
<ol start="5" reversed class="custom-style">
<li>Lorem ipsum dolor sit amet consectetur.</li>
<li>Eaque, ipsam sapiente. Necessitatibus, quos non?</li>
<li>Deleniti veniam rem repudiandae quod tenetur!</li>
<li value="10">Error deserunt tempore officia explicabo repudiandae.</li>
<li>Rem quas nihil voluptatem quam nam.</li>
</ol>
<h3>Custom Marker Content</h3>
<ol class="custom-marker">
<li>Lorem ipsum dolor sit amet consectetur.</li>
<li>Velit ut quos eius modi illum?</li>
<li>Quia perspiciatis eligendi et voluptatibus aliquid.</li>
<li>Eligendi architecto provident nesciunt vitae aspernatur!</li>
</ol>
<h2>Definition Lists</h2>
<dl>
<dt>HTML</dt>
<dd>The HyperText Markup Language or HTML is the standard markup language for documents designed to be displayed
in a web browser. It defines the meaning and structure of web content.</dd>
<dt>CSS</dt>
<dd>The style sheet language used for describing the presentation of a document written in a markup language
such as HTML or XML</dd>
<dt>JS</dt>
<dd>JavaScript, often abbreviated as JS, is a programming language that is one of the core technologies of the
World Wide Web, alongside HTML and CSS.</dd>
</dl>
<h2>Multilevel Lists</h2>
<ol>
<li>Lorem ipsum dolor sit amet consectetur adipisicing.</li>
<li>Inner list
<ol>
<li>Lorem ipsum dolor sit.</li>
<li>Nemo rem nam reiciendis?</li>
</ol>
</li>
<li>Consequatur incidunt sint ducimus! Officiis, sapiente placeat!</li>
<li>Excepturi recusandae nam cumque ullam voluptates voluptatibus?
<ul>
<li>Lorem ipsum dolor sit amet.</li>
<li>Voluptas placeat autem ea quo.</li>
<li>Exercitationem atque saepe repudiandae iusto.
<ul>
<li>Lorem ipsum dolor sit.</li>
<li>Quaerat culpa eaque numquam.</li>
</ul>
</li>
</ul>
</li>
<li>Est amet laborum iure porro blanditiis. Porro?
<ol>
<li>Lorem ipsum dolor sit.</li>
<li>Nemo rem nam reiciendis?</li>
</ol>
</li>
</ol>
</body>
</html>