-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPractical_1(B).html
More file actions
105 lines (95 loc) · 1.86 KB
/
Practical_1(B).html
File metadata and controls
105 lines (95 loc) · 1.86 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Type of Lists</title>
</head>
<style>
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
padding: 1rem;
}
ol,
ul,
dl {
font-size: 2.5rem;
margin: 0 0 0 5rem;
}
ol,
ul,
dl > li {
padding: 0.2rem;
}
h1 {
font-size: 5rem;
}
h2 {
font-size: 2rem;
margin-top: 1rem;
}
dl > dd {
padding: 0.2rem;
}
div > ul {
margin: 0 0 0 5rem;
}
</style>
<body>
<h1>All Lists</h1>
<hr />
<h2>ORDER LIST (ol)</h2>
<ol>
<li>Milk</li>
<li>Bread</li>
<li>Apples</li>
<li>Banana</li>
<li>Cookies</li>
</ol>
<hr />
<h2>UNORDER LIST (ul)</h2>
<ul>
<li>Step 1: Gather ingredients</li>
<li>Step 2: Take all as required</li>
<li>Step 3: Mix them</li>
<li>Step 4: Bake for 30 minutes</li>
<li>Step 5: Enjoy!</li>
</ul>
<hr />
<h2>DEFINATION LIST (dl)</h2>
<dl>
<dt><i>-HTML</i></dt>
<dd>HTML stands for HyperText Markup Language.</dd>
<dt><i>-CSS</i></dt>
<dd>CSS stands for Cascading Style Sheets.</dd>
<dt><i>-JavaScript</i></dt>
<dd>JavaScript is a programming language.</dd>
</dl>
<hr />
<h2>NESTED LIST</h2>
<div>
<ul>
<li>
Fruits
<ul style="margin: 1rem">
<li>Apples</li>
<li>Bananas</li>
<li>Oranges</li>
</ul>
</li>
<li>
Vegetables
<ul style="margin: 1rem">
<li>Carrots</li>
<li>Broccoli</li>
<li>Spinach</li>
</ul>
</li>
</ul>
</div>
</body>
</html>