72 lines
1.1 KiB
Markdown
72 lines
1.1 KiB
Markdown
|
---
|
||
|
id: 5f3477aefa51bfc29327200b
|
||
|
title: Part 15
|
||
|
challengeType: 0
|
||
|
---
|
||
|
|
||
|
## Description
|
||
|
<section id='description'>
|
||
|
|
||
|
So far you have styled three elements by writing CSS inside the `style` element of the `index.html` file. Since there will many more styles, you can write CSS in a separte file (`styles.css`) and then link to it.
|
||
|
|
||
|
Get started by taking the content of the `index.html` file's `style` element (exclude the opening and closing tags) and rewrite it in the `styles.css`.
|
||
|
|
||
|
</section>
|
||
|
|
||
|
## Tests
|
||
|
<section id='tests'>
|
||
|
|
||
|
```yml
|
||
|
tests:
|
||
|
- text: Test 1
|
||
|
testString: ''
|
||
|
|
||
|
```
|
||
|
|
||
|
</section>
|
||
|
|
||
|
## Challenge Seed
|
||
|
<section id='challengeSeed'>
|
||
|
|
||
|
<div id='html-seed'>
|
||
|
|
||
|
```html
|
||
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta charset="utf-8" />
|
||
|
<title>Camper Cafe Menu</title>
|
||
|
<style>
|
||
|
h1, h2, p {
|
||
|
text-align: center;
|
||
|
}
|
||
|
</style>
|
||
|
</head>
|
||
|
<body>
|
||
|
<header>
|
||
|
<h1>CAMPER CAFE</h1>
|
||
|
<p>Est. 2020</p>
|
||
|
</header>
|
||
|
<main>
|
||
|
<section>
|
||
|
<h2>Coffees</h2>
|
||
|
</section>
|
||
|
</main>
|
||
|
</body>
|
||
|
<html>
|
||
|
```
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div id='css-seed'>
|
||
|
|
||
|
```css
|
||
|
--fcc-editable-region--
|
||
|
|
||
|
--fcc-editable-region--
|
||
|
```
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</section>
|