Files

57 lines
1.3 KiB
Markdown
Raw Permalink Normal View History

---
id: bad87fed1348bd9aedf08833
title: Видалення елементів HTML
challengeType: 0
videoUrl: 'https://scrimba.com/p/pVMPUv/ckK73C9'
forumTopicId: 17559
dashedName: delete-html-elements
---
# --description--
У вашому телефоні не так багато місця по вертикалі.
Потрібно видалити непотрібні елементи, щоб розпочати створення CatPhotoApp.
# --instructions--
Видаліть елемент `h1`, щоб спростити перегляд.
# --hints--
Елемент `h1` слід видалити.
```js
assert(!code.match(/<h1>/gi) && !code.match(/<\/h1>/gi));
```
Елемент `h2` має бути на сторінці.
```js
assert(code.match(/<h2>[\w\W]*<\/h2>/gi));
```
Елемент `p` має бути на сторінці.
```js
assert(code.match(/<p>[\w\W]*<\/p>/gi));
```
# --seed--
## --seed-contents--
```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>
```
# --solutions--
```html
<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>
```