freeCodeCamp/curriculum/challenges/portuguese/01-responsive-web-design/basic-html-and-html5/inform-with-the-paragraph-e...

1.5 KiB

id title challengeType videoUrl localeTitle
bad87fee1348bd9aedf08801 Inform with the Paragraph Element 0 Informar com o elemento Paragraph

Description

p elementos p são o elemento preferido para o texto do parágrafo nos sites. p é a abreviatura de "parágrafo". Você pode criar um elemento de parágrafo como este: <p>I'm ap tag!</p>

Instructions

Crie um elemento p abaixo do seu elemento h2 e dê a ele o texto "Hello Paragraph".

Tests

tests:
  - text: Crie um elemento <code>p</code> .
    testString: 'assert(($("p").length > 0), "Create a <code>p</code> element.");'
  - text: Seu elemento <code>p</code> deve ter o texto &quot;Hello Paragraph&quot;.
    testString: 'assert.isTrue((/hello(\s)+paragraph/gi).test($("p").text()), "Your <code>p</code> element should have the text "Hello Paragraph".");'
  - text: Certifique-se de que seu elemento <code>p</code> tenha uma tag de fechamento.
    testString: 'assert(code.match(/<\/p>/g) && code.match(/<\/p>/g).length === code.match(/<p/g).length, "Make sure your <code>p</code> element has a closing tag.");'

Challenge Seed

<h1>Hello World</h1>
<h2>CatPhotoApp</h2>

Solution

// solution required