-
Notifications
You must be signed in to change notification settings - Fork 0
/
aboutcss.html
61 lines (55 loc) · 2.66 KB
/
aboutcss.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>About CSS</title>
<link rel="stylesheet" href="sitayilo/stlyes.css">
</head>
<body style="background-color: #00203FFF;">
<div class="container1">
<ul>
<li><a class="ab"href="index.html">Home</a></li>
<li><a class="ab"href="#">About CSS</a></li>
<li><a class="ab"href="whoami.html">Who I Am</a></li>
<li><a class="ab"href="mystory.html">My story</a></li>
</ul>
<div class="conts">
<p>Cascading Style Sheets (CSS) is a stylesheet language used to describe how HTML elements will be displayed on the screen.
</p>
</div>
<div class="conts">
<p>CSS can majorly be added to webpages in the folloeing three ways:</p>
<ol>
<li>
Inline CSS
<p>An inline style may be used to apply a unique style for a single element. To use inline styles, add the style attribute to the relevant element.</p>
</li>
<li>
Internal CSS
<p>An internal CSS is used to define a style for a single HTML page. An internal CSS is defined in the head section of an HTML page, within a style element.</p>
</li>
<li>
External CSS
<p>With an external style sheet, you can change the look of an entire website by changing just one file!
Each HTML page must include a reference to the external style sheet file inside the link element, inside the head section.</p>
</li>
</ol>
</div>
<div class="conts">
<h3>CSS Selectors</h3>
<p>Selectors are used to select and find particular HTML element that a programmer would want to add style to</p>
<p>The following are the most used CSS selectors</p>
<ol>
<li>The universal selector</li>
<p>Denoted by the asterisk (*), the universal selector is used to select all HTML elements on a webpage</p>
<li>The class selector</li>
<p>Denoted by the dot(.), The class selector selects elements with a specific style attribute.</p>
<li>The id selector</li>
<p>Denoted by the hash symbol(#), the id selector is used to select a specific or unique HTML element within a webpage</p>
</ol>
</div>
</div>
</body>
</html>