- index.html
- style.css
HTML
<!DOCTYPE html>
<html>
<head>
<title>Consolidation</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>The main languages of the web</h1>
<h2>Beautiful HTML</h2>
<p>It consists of many tags. Each tag has a specific meaning and purpose.</p>
Mighty CSS
Consists of selectors and properties.
Powerful JavaScript
The most popular programming language in the world.
</body>
</html>
CSS
/* This rule sets the overall font size */
body {
font-size: 16px;
}
/* This rule is the size for first level headings */
h1 {
font-size: 20px;
}
/* And this is the shadow for the first level headers */
h1 {
text-shadow:
1px 1px 0 white,
2px 2px 0 #ccc;
}
You have moved to another page
GoalsCompleted
0
Practice changing code in editors. Watch how it changes the page in the browser.
- Make the text
Mighty CSS
a second-level header. - Make the text
Consists of selectors and properties.
paragraph. - Enlarge the font size of the first level heading to
48px
.