2020-09-03 19:12:42 -07:00
---
2020-10-13 15:27:40 -07:00
id: 5f716bee5838c354c728a7c5
2021-10-21 10:07:52 -07:00
title: Step 53
2020-09-03 19:12:42 -07:00
challengeType: 0
2021-10-21 10:07:52 -07:00
dashedName: step-53
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
2020-10-13 15:27:40 -07:00
Below the dessert you just added, add the rest of the desserts and prices using three more `article` elements, each with two nested `p` elements. Each element should have the correct dessert and price text, and all of them should have the correct classes.
2020-09-03 19:12:42 -07:00
2020-10-13 15:27:40 -07:00
```bash
Cherry Pie 2.75
Cheesecake 3.00
2022-01-01 20:13:11 -06:00
Cinnamon Roll 2.50
2020-10-13 15:27:40 -07:00
```
2020-09-03 19:12:42 -07:00
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 four `.dessert` elements.
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($('.dessert').length === 4);
```
You should have four new `.price` elements.
```js
assert($('section').last().find('.price').length === 4);
```
Your `section` element should have eight `p` elements.
```js
assert($('section').last().find('p').length === 8);
```
2022-01-01 20:13:11 -06:00
Your `.dessert` elements should have the text `Donut` , `Cherry Pie` , `Cheesecake` , and `Cinnamon Roll` .
2020-09-03 19:12:42 -07:00
2021-07-21 12:03:09 -07:00
```js
const dessert = $('.dessert');
assert(dessert[0].innerText.match(/donut/i));
assert(dessert[1].innerText.match(/cherry pie/i));
assert(dessert[2].innerText.match(/cheesecake/i));
2022-01-01 20:13:11 -06:00
assert(dessert[3].innerText.match(/cinnamon roll/i));
2021-07-21 12:03:09 -07:00
```
Your new `.price` elements should have the text `1.50` , `2.75` , `3.00` , and `2.50` .
```js
const prices = $('section').last().find('.price');
assert(prices[0].innerText.match(/1\.50/));
assert(prices[1].innerText.match(/2\.75/));
assert(prices[2].innerText.match(/3\.00/));
assert(prices[3].innerText.match(/2\.50/));
```
You should not have any spaces between your `p` elements.
```js
assert(!code.match(/< \/p > \s+< p /));
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" / >
< meta name = "viewport" content = "width=device-width, initial-scale=1.0" / >
2022-03-14 15:54:43 +00:00
< title > Cafe Menu< / title >
2020-09-03 19:12:42 -07:00
< link href = "styles.css" rel = "stylesheet" type = "text/css" / >
< / head >
< body >
< div class = "menu" >
< header >
< h1 > CAMPER CAFE< / h1 >
< p > Est. 2020< / p >
< / header >
< main >
< section >
2021-07-21 12:03:09 -07:00
< h2 > Coffee< / h2 >
2020-09-03 19:12:42 -07:00
< article class = "item" >
< p class = "flavor" > French Vanilla< / p > < p class = "price" > 3.00< / p >
< / article >
< article class = "item" >
2021-07-21 12:03:09 -07:00
< p class = "flavor" > Caramel Macchiato< / p > < p class = "price" > 3.75< / p >
2020-09-03 19:12:42 -07:00
< / article >
< article class = "item" >
< p class = "flavor" > Pumpkin Spice< / p > < p class = "price" > 3.50< / p >
< / article >
< article class = "item" >
< p class = "flavor" > Hazelnut< / p > < p class = "price" > 4.00< / p >
< / article >
< article class = "item" >
< p class = "flavor" > Mocha< / p > < p class = "price" > 4.50< / p >
< / article >
< / section >
< section >
< h2 > Desserts< / h2 >
2020-11-27 19:02:05 +01:00
--fcc-editable-region--
2020-09-03 19:12:42 -07:00
< article class = "item" >
< p class = "dessert" > Donut< / p > < p class = "price" > 1.50< / p >
< / article >
2020-11-27 19:02:05 +01:00
--fcc-editable-region--
2020-09-03 19:12:42 -07:00
< / section >
< / main >
< / div >
< / body >
< html >
```
```css
body {
2021-07-21 12:03:09 -07:00
background-image: url(https://cdn.freecodecamp.org/curriculum/css-cafe/beans.jpg);
2020-09-03 19:12:42 -07:00
}
h1, h2, p {
text-align: center;
}
.menu {
width: 80%;
background-color: burlywood;
margin-left: auto;
margin-right: auto;
}
.item p {
display: inline-block;
}
.flavor, .dessert {
text-align: left;
width: 75%;
}
.price {
text-align: right;
width: 25%
}
```