-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathlist_link_styling.html
70 lines (64 loc) · 1.32 KB
/
list_link_styling.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
<!DOCTYPE html>
<html>
<head>
<title>Sample List</title>
<link rel="stylesheet" type="text/css" href="css/list.css">
</head>
<body>
one way to style list is using type in the ol or ul tags
<br>
<!-- <h1>Sample List Styling</h1>
<ol type="i">
<li>Mac Book Pro</li>
<li>Mac Book Air</li>
<li>Ipad</li>
<li>Iphone X</li>
</ol>
<br>
<ul type="square">
<li>Mac Book Pro</li>
<li>Mac Book Air</li>
<li>Ipad</li>
<li>Iphone X</li>
</ul> -->
Another way is to use style in html tags to mention the list types using list style type and another method is css
<!-- <h1>Sample List Styling</h1>
<ol style= "list-style-type:upper-roman">
<li>Mac Book Pro</li>
<li>Mac Book Air</li>
<li>Ipad</li>
<li>Iphone X</li>
</ol>
<br>
<ul style= "list-style-type:none">
<li>Mac Book Pro</li>
<li>Mac Book Air</li>
<li>Ipad</li>
<li>Iphone X</li>
</ul> -->
<h1>Sample List Styling</h1>
<div>
<ol>
<li>Mac Book Pro</li>
<li>Mac Book Air</li>
<li>Ipad</li>
<li>Iphone X</li>
</ol>
</div>
<div>
<ul>
<li>Mac Book Pro</li>
<li>Mac Book Air</li>
<li>Ipad</li>
<li>Iphone X</li>
</ul>
</div>
<div>
Link Styling
<a href="">Hello</a>
<a href="index.html" target="_blank">Index</a>
<a href="history.html" target="_blank">History</a>
<a href="teams.html" target="_blank">Teams</a>
</div>
</body>
</html>