2018-09-30 23:01:58 +01:00
---
id: bad87fed1348bd9aedf08833
title: Delete HTML Elements
challengeType: 0
videoUrl: 'https://scrimba.com/p/pVMPUv/ckK73C9'
---
## Description
< section id = 'description' >
Our phone doesn't have much vertical space.
Let's remove the unnecessary elements so we can start building our CatPhotoApp.
< / section >
## Instructions
< section id = 'instructions' >
Delete your < code > h1< / code > element so we can simplify our view.
< / section >
## Tests
< section id = 'tests' >
```yml
- text: Delete your < code > h1</ code > element.
2018-10-02 15:02:53 +01:00
testString: 'assert(!code.match(/< h1 > /gi) && !code.match(/< \/h1 > /gi), ''Delete your < code > h1</ code > element.'');'
2018-09-30 23:01:58 +01:00
- text: Leave your < code > h2</ code > element on the page.
2018-10-02 15:02:53 +01:00
testString: 'assert(code.match(/< h2 > [\w\W]*< \/h2 > /gi), ''Leave your < code > h2</ code > element on the page.'');'
2018-09-30 23:01:58 +01:00
- text: Leave your < code > p</ code > element on the page.
2018-10-02 15:02:53 +01:00
testString: 'assert(code.match(/< p > [\w\W]*< \/p > /gi), ''Leave your < code > p</ code > element on the page.'');'
2018-09-30 23:01:58 +01:00
```
< / section >
## Challenge Seed
< section id = 'challengeSeed' >
< div id = 'html-seed' >
```html
< h1 > Hello World< / h1 >
< h2 > CatPhotoApp< / h2 >
< p > Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.< / p >
```
< / div >
< / section >
## Solution
< section id = 'solution' >
```js
var code = "< h2 > CatPhotoApp< / h2 > < p > Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.< / p > "
```
< / section >