2020-09-03 19:12:42 -07:00
|
|
|
---
|
|
|
|
id: 5f332a88dc25a0fd25c7687a
|
2021-10-21 10:07:52 -07:00
|
|
|
title: Step 6
|
2020-09-03 19:12:42 -07:00
|
|
|
challengeType: 0
|
2021-10-21 10:07:52 -07:00
|
|
|
dashedName: step-6
|
2020-09-03 19:12:42 -07:00
|
|
|
---
|
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
# --description--
|
2020-09-03 19:12:42 -07:00
|
|
|
|
|
|
|
To let visitors know the cafe was founded in 2020, add a `p` element below the `h1` element with the text `Est. 2020`.
|
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
# --hints--
|
2020-09-03 19:12:42 -07:00
|
|
|
|
2021-07-21 12:03:09 -07:00
|
|
|
You should have an opening `<p>` tag.
|
2020-09-03 19:12:42 -07:00
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
```js
|
2021-07-21 12:03:09 -07:00
|
|
|
assert(code.match(/<p>/i));
|
|
|
|
```
|
|
|
|
|
|
|
|
You should have a closing `</p>` tag.
|
|
|
|
|
|
|
|
```js
|
|
|
|
assert(code.match(/<\/p>/i));
|
|
|
|
```
|
|
|
|
|
|
|
|
You should not change your existing `h1` element. Make sure you did not delete the closing tag.
|
2020-09-03 19:12:42 -07:00
|
|
|
|
2021-07-21 12:03:09 -07:00
|
|
|
```js
|
|
|
|
assert($('h1').length === 1);
|
|
|
|
```
|
|
|
|
|
|
|
|
Your `p` element should be below your `h1` element.
|
|
|
|
|
|
|
|
```js
|
|
|
|
assert($('p')[0].previousElementSibling.tagName === 'H1');
|
|
|
|
```
|
|
|
|
|
|
|
|
Your `p` element should have the text `Est. 2020`.
|
|
|
|
|
|
|
|
```js
|
|
|
|
assert(code.match(/<p>Est. 2020<\/p>/i));
|
2020-09-03 19:12:42 -07:00
|
|
|
```
|
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
# --seed--
|
2020-09-03 19:12:42 -07:00
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
## --seed-contents--
|
2020-09-03 19:12:42 -07:00
|
|
|
|
|
|
|
```html
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
2022-03-14 15:54:43 +00:00
|
|
|
<title>Cafe Menu</title>
|
2020-09-03 19:12:42 -07:00
|
|
|
</head>
|
|
|
|
<body>
|
2020-11-27 19:02:05 +01:00
|
|
|
--fcc-editable-region--
|
2020-09-03 19:12:42 -07:00
|
|
|
<h1>CAMPER CAFE</h1>
|
2020-11-27 19:02:05 +01:00
|
|
|
--fcc-editable-region--
|
2020-09-03 19:12:42 -07:00
|
|
|
</body>
|
|
|
|
<html>
|
|
|
|
```
|
|
|
|
|