2020-09-03 19:12:42 -07:00
---
id: 5f3477ae34c1239cafe128be
2021-10-21 10:07:52 -07:00
title: Step 14
2020-09-03 19:12:42 -07:00
challengeType: 0
2021-10-21 10:07:52 -07:00
dashedName: step-14
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
You now have three type selectors with the exact same styling. You can add the same group of styles to many elements by separating the selectors with commas like this:
```css
selector1, selector2 {
property: value;
}
```
2020-09-03 19:12:42 -07:00
Use a single type selector to center the `h1` , `h2` and `p` elements at the same time.
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 use a single type selector for all three elements, `h1, h2, p` . Be sure to use that order.
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
const hasSelector = new __helpers.CSSHelp(document).getStyle('h1, h2, p');
assert(hasSelector);
```
You should only have one selector in your `style` element.
2020-09-03 19:12:42 -07:00
2021-07-21 12:03:09 -07:00
```js
const selectors = new __helpers.CSSHelp(document).getCSSRules().filter(x => x.selectorText)
assert(selectors.length === 1);
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-11-27 19:02:05 +01:00
--fcc-editable-region--
2020-09-03 19:12:42 -07:00
< style >
h1 {
text-align: center;
}
h2 {
text-align: center;
}
p {
text-align: center;
}
< / style >
2020-11-27 19:02:05 +01:00
--fcc-editable-region--
2020-09-03 19:12:42 -07:00
< / head >
< body >
< 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
< / section >
< / main >
< / body >
< html >
```