freeCodeCamp/curriculum/challenges/arabic/03-front-end-libraries/bootstrap/create-a-bootstrap-row.arab...

1.7 KiB

id title challengeType videoUrl localeTitle
bad87fee1348bd9bec908846 Create a Bootstrap Row 0

Description

سنقوم الآن بإنشاء صف Bootstrap لعناصر المضمنة الخاصة بنا. أنشئ عنصر div أسفل علامة h3 ، مع فئة row .

Instructions

undefined

Tests

tests:
  - text: أضف عنصر <code>div</code> أسفل عنصر <code>h3</code> .
    testString: 'assert(($("div").length > 1) && ($("div.row h3.text-primary").length == 0) && ($("div.row + h3.text-primary").length == 0) && ($("h3.text-primary + div.row").length > 0), "Add a <code>div</code> element below your <code>h3</code> element.");'
  - text: ''
    testString: 'assert($("div").hasClass("row"), "Your <code>div</code> element should have the class <code>row</code>");'
  - text: يجب أن يتداخل <code>row div</code> داخل <code>container-fluid div</code>
    testString: 'assert($("div.container-fluid div.row").length > 0, "Your <code>row div</code> should be nested inside the <code>container-fluid div</code>");'
  - text: ''
    testString: 'assert(code.match(/<\/div>/g) && code.match(/<div/g) && code.match(/<\/div>/g).length === code.match(/<div/g).length, "Make sure your <code>div</code> element has a closing tag.");'

Challenge Seed

<div class="container-fluid">
  <h3 class="text-primary text-center">jQuery Playground</h3>

</div>

Solution

// solution required