Files

56 lines
886 B
Markdown
Raw Permalink Normal View History

---
id: 615f2abbe7d18d49a1e0e1c8
title: Step 1
challengeType: 0
dashedName: step-1
---
# --description--
We've provided a basic HTML boilerplate for you.
Create an `h1` element within your `body` element and give it the text `Nutrition Facts`.
# --hints--
You should add a new `h1` element.
```js
assert.exists(document.querySelector('h1'));
```
Your `h1` element should be within your `body` element.
```js
assert(document.querySelector('h1')?.parentElement?.localName === 'body');
```
Your `h1` element should have the text `Nutrition Facts`.
```js
assert(document.querySelector('h1')?.innerText === 'Nutrition Facts');
```
# --seed--
## --seed-contents--
```html
--fcc-editable-region--
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Nutrition Label</title>
</head>
<body>
</body>
</html>
--fcc-editable-region--
```
```css
```