-
Notifications
You must be signed in to change notification settings - Fork 328
/
index.html
37 lines (29 loc) · 1.59 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Introduction to CSS Lab</title>
<!-- Your code here! -->
</head>
<body>
<div>
<h1 id='main-header'>How Does Writing CSS Differ From Writing HTML?</h1>
<p>As we write CSS these are the type of questions we might ask ourselves:</p>
<ul>
<li class='perspective-questions'>Should the layout of the text be in a single or double column?</li>
<li class='perspective-questions'>Should we use a different font color for the header?</li>
<li class='perspective-questions'>How should the same content appear
differently on a desktop versus a mobile device?</li>
</ul>
<p>All of the questions above deal with the aesthetic considerations of the page. These are the concerns of the presentation layer (CSS).</p>
<p>As a contrast, let's consider the type of questions we might ask ourselves as we write HTML:</p>
<ul>
<li class='perspective-questions'>Does the order of items within a list matter? Should it be a numbered list?</li>
<li class='perspective-questions'>Should we wrap a list of links inside a navigation tag?</li>
<li class='perspective-questions'>Is this the most important header in the whole HTML document?</li>
</ul>
<p>The last few questions deal with structure, hierarchy, and meaning. These are the concerns of the content layer (HTML).</p>
<p>When we write CSS, we focus on aesthetic and display considerations. When we write HTML, we focus on structure, hierarchy, and meaning.</p>
</div>
</body>
</html>