freeCodeCamp/curriculum/challenges/arabic/01-responsive-web-design/basic-html-and-html5/headline-with-the-h2-elemen...

1.4 KiB

id title challengeType videoUrl localeTitle
bad87fee1348bd9aedf0887a Headline with the h2 Element 0 العنوان مع عنصر h2

Description

undefined

Instructions

إضافة علامة h2 تقول "CatPhotoApp" لإنشاء element HTML ثاني أسفل عنصر h1 "Hello World".

Tests

tests:
  - text: قم بإنشاء عنصر <code>h2</code> .
    testString: 'assert(($("h2").length > 0), "Create an <code>h2</code> element.");'
  - text: ''
    testString: 'assert(code.match(/<\/h2>/g) && code.match(/<\/h2>/g).length === code.match(/<h2>/g).length, "Make sure your <code>h2</code> element has a closing tag.");'
  - text: ''
    testString: 'assert.isTrue((/cat(\s)?photo(\s)?app/gi).test($("h2").text()), "Your <code>h2</code> element should have the text "CatPhotoApp".");'
  - text: يجب أن يحتوي عنصر <code>h1</code> على النص &quot;Hello World&quot;.
    testString: 'assert.isTrue((/hello(\s)+world/gi).test($("h1").text()), "Your <code>h1</code> element should have the text "Hello World".");'

Challenge Seed

<h1>Hello World</h1>

Solution

// solution required