`.
```js
assert(document.querySelector('main'));
```
Your `main` element should have a closing tag. Closing tags have a `/` just after the `<` character.
```js
assert(code.match(/<\/main\>/));
```
Your `main` element's opening tag should be below the `h1` element. You have them in the wrong order.
```js
const collection = [...document.querySelectorAll('main,h1')].map(
(node) => node.nodeName
);
assert(collection.indexOf('H1') < collection.indexOf('MAIN'));
```
Your `main` element's opening tag should be above the `h2` element. You have them in the wrong order.
```js
const collection = [...document.querySelectorAll('main,h2')].map(
(node) => node.nodeName
);
assert(collection.indexOf('MAIN') < collection.indexOf('H2'));
```
Your `main` element's closing tag should be below the `p` element. You have them in the wrong order.
```js
const mainNode = document.querySelector('main');
const pNode = document.querySelector('p');
assert(
mainNode.contains(pNode) &&
pNode.textContent.toLowerCase().match(/click here to view more cat photos/)
);
```
# --seed--
## --seed-contents--
```html
--fcc-editable-region--
CatPhotoApp
Cat Photos
Click here to view more cat photos.
--fcc-editable-region--
```