---
id: bad87fee1348bd9aedf0887a
title: Headline with the h2 Element
challengeType: 0
videoUrl: ''
localeTitle: Título com o elemento h2
---
## Description
Nas próximas lições, criaremos um aplicativo web de fotos para gatos em HTML5, peça por peça. O elemento h2
que você adicionará nesta etapa adicionará um cabeçalho de nível dois à página da web. Esse elemento informa ao navegador sobre a estrutura do seu site. h1
elementos h1
são freqüentemente usados para cabeçalhos principais, enquanto os elementos h2
são geralmente usados para subtítulos. Há também elementos h3
, h4
, h5
e h6
para indicar diferentes níveis de subtítulos.
## Instructions
Adicione uma tag h2
que diga "CatPhotoApp" para criar um segundo element
HTML abaixo do elemento h1
"Hello World".
## Tests
```yml
tests:
- text: Crie um elemento h2
.
testString: 'assert(($("h2").length > 0), "Create an h2
element.");'
- text: Certifique-se de que seu elemento h2
tenha uma tag de fechamento.
testString: 'assert(code.match(/<\/h2>/g) && code.match(/<\/h2>/g).length === code.match(//g).length, "Make sure your h2
element has a closing tag.");'
- text: Seu elemento h2
deve ter o texto "CatPhotoApp".
testString: 'assert.isTrue((/cat(\s)?photo(\s)?app/gi).test($("h2").text()), "Your h2
element should have the text "CatPhotoApp".");'
- text: Seu elemento h1
deve ter o texto "Hello World".
testString: 'assert.isTrue((/hello(\s)+world/gi).test($("h1").text()), "Your h1
element should have the text "Hello World".");'
```
## Challenge Seed
## Solution
```js
// solution required
```