2020-09-03 19:12:42 -07:00
---
id: 5f3c866d5414453fc2d7b480
2021-10-21 10:07:52 -07:00
title: Step 32
2020-09-03 19:12:42 -07:00
challengeType: 0
2021-10-21 10:07:52 -07:00
dashedName: step-32
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
2021-07-21 12:03:09 -07:00
Starting below the existing coffee/price pair, add the following coffee and prices using `article` elements with two nested `p` elements inside each. As before, the first `p` element's text should contain the coffee flavor and the second `p` element's text should contain the price.
2020-09-03 19:12:42 -07:00
```bash
2021-07-21 12:03:09 -07:00
Caramel Macchiato 3.75
2020-09-03 19:12:42 -07:00
Pumpkin Spice 3.50
Hazelnut 4.00
2021-07-21 12:03:09 -07:00
Mocha 4.50
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 five `article` 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($('article').length === 5);
```
Each `article` element should have two `p` elements.
```js
const articles = $('article');
assert(articles[0].children.length === 2);
assert(articles[1].children.length === 2);
assert(articles[2].children.length === 2);
assert(articles[3].children.length === 2);
assert(articles[4].children.length === 2);
```
Your first `article` element should have `p` elements with the text `French Vanilla` and `3.00` .
```js
const children = $('article')[0].children;
assert(children[0].innerText.match(/French Vanilla/i));
assert(children[1].innerText.match(/3\.00/i));
```
Your second `article` element should have `p` elements with the text `Caramel Macchiato` and `3.75` .
```js
const children = $('article')[1].children;
assert(children[0].innerText.match(/Caramel Macchiato/i));
assert(children[1].innerText.match(/3\.75/i));
```
Your third `article` element should have `p` elements with the text `Pumpkin Spice` and `3.50` .
```js
const children = $('article')[2].children;
assert(children[0].innerText.match(/Pumpkin Spice/i));
assert(children[1].innerText.match(/3\.50/i));
```
Your fourth `article` element should have `p` elements with the text `Hazelnut` and `4.00` .
2020-09-03 19:12:42 -07:00
2021-07-21 12:03:09 -07:00
```js
const children = $('article')[3].children;
assert(children[0].innerText.match(/Hazelnut/i));
assert(children[1].innerText.match(/4\.00/i));
```
Your fifth `article` element should have `p` elements with the text `Mocha` and `4.50` .
```js
const children = $('article')[4].children;
assert(children[0].innerText.match(/Mocha/i));
assert(children[1].innerText.match(/4\.50/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" / >
< 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-11-27 19:02:05 +01:00
--fcc-editable-region--
2020-09-03 19:12:42 -07:00
< article >
< p > French Vanilla< / p >
< p > 3.00< / 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;
}
```