1.4 KiB

id, title, challengeType, videoUrl
id title challengeType videoUrl
bad87fee1348bd9aedf08801 Inform with the Paragraph Element 0 https://scrimba.com/p/pVMPUv/ceZ7DtN

Description

p elements are the preferred element for paragraph text on websites. p is short for "paragraph". You can create a paragraph element like this: <p>I'm a p tag!</p>

Instructions

Create a p element below your h2 element, and give it the text "Hello Paragraph".

Tests

tests:
  - text: Create a <code>p</code> element.
    testString: 'assert(($("p").length > 0), "Create a <code>p</code> element.");'
  - text: Your <code>p</code> element should have the text "Hello Paragraph".
    testString: 'assert.isTrue((/hello(\s)+paragraph/gi).test($("p").text()), "Your <code>p</code> element should have the text "Hello Paragraph".");'
  - text: Make sure your <code>p</code> element has a closing tag.
    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