- index.html
- style.css
HTML
<!DOCTYPE html>
<html>
<head>
<title>CSS in action</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<h1>CSS</h1>
<p>CSS is even simpler than HTML. It consists of a lot of rules, like these:</p>
<pre><code>selector {
property1: <em>value1</em>;
property2: <em>value2</em>;
}</code></pre>
<p>The rules are very simple. But there is one problem: there are a <em>lot</em> of properties.</p>
<p>Most of the course will focus specifically on CSS.</p>
<p>Now work with the editor.</p>
</body>
</html>
CSS
/*
body {
padding: 0 20px;
font-size: 16px;
font-family: "Arial", sans-serif;
}
h1 {
color: #618ad2;
text-shadow: 2px 2px 0 #cccccc;
}
pre {
padding: 10px;
font-size: 14px;
line-height: 20px;
background-color: #f5f5f5;
border: 1px solid #cccccc;
border-radius: 3px;
}
em {
color: #618ad2;
}
*/
You have moved to another page
GoalsCompleted
0
- Remove the
/*
characters in the first line of the CSS editor and see how the page text transforms.