* chore: rename files * chore: update codebase * chore: proper title case * chore: missed block name Co-authored-by: Shaun Hamilton <shauhami020@gmail.com> Co-authored-by: Shaun Hamilton <shauhami020@gmail.com> Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
58 lines
1.0 KiB
Markdown
58 lines
1.0 KiB
Markdown
---
|
|
id: 5f344fad8bf01691e71a30eb
|
|
title: Step 11
|
|
challengeType: 0
|
|
dashedName: step-11
|
|
---
|
|
|
|
# --description--
|
|
|
|
Up until now, you have been limited regarding the presentation and appearance of the content you create. To start taking control, add a `style` element within the `head` element.
|
|
|
|
# --hints--
|
|
|
|
Your code should have an opening `<style>` tag.
|
|
|
|
```js
|
|
assert(code.match(/<style\s*>/i));
|
|
```
|
|
|
|
Your code should have a closing `</style>` tag.
|
|
|
|
```js
|
|
assert(code.match(/<\/style\s*>/));
|
|
```
|
|
|
|
Your `style` element should be nested in your `head` element.
|
|
|
|
```js
|
|
assert(code.match(/<head\s*>[\w\W\s]*<style\s*>[\w\W\s]*<\/style\s*>[\w\W\s]*<\/head\s*>/i))
|
|
```
|
|
|
|
# --seed--
|
|
|
|
## --seed-contents--
|
|
|
|
```html
|
|
<!DOCTYPE html>
|
|
<html>
|
|
--fcc-editable-region--
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>Camper Cafe Menu</title>
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<h1>CAMPER CAFE</h1>
|
|
<p>Est. 2020</p>
|
|
</header>
|
|
<main>
|
|
<section>
|
|
<h2>Coffee</h2>
|
|
</section>
|
|
</main>
|
|
</body>
|
|
--fcc-editable-region--
|
|
<html>
|
|
```
|