-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathhascss.html
57 lines (52 loc) · 1.27 KB
/
hascss.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
<!doctype html>
<head>
<title>This page is stylish</title>
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Averia+Serif+Libre:300,400">
<link rel="stylesheet" href="style.css">
<meta charset="utf-8">
<style>
em {
font-style: normal;
background-color: orange;
}
em {
background-color: pink;
}
div {
width: 600px;
padding: 20px;
margin: 50px auto;
background-color: limegreen;
}
p.intro {
margin: 0;
padding: 20px;
background-color: lightgrey;
font-size: 24px;
line-height: 1.3;
}
code {
color: darkgreen;
font-weight: bold;
}
</style>
</head>
<h1>Stylish!</h1>
<div>
<!--
A div is a container used to group content.
div is short for 'division'.
-->
<p class="intro">
This page has <strong>four</strong> style sheets: default styles
in the <em>user agent style sheet</em>, two <em>external style
sheets</em> and an <em>embedded style sheet</em>.
</p>
<p>
The user agent
style sheet is added by the browser. An external style sheet is
applied by using a <code><link></code> tag. An embedded
style sheet is a collection of rules in between a pair of
<code><style></code> tags.
</p>
</div>