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

2.2 KiB

id title challengeType videoUrl localeTitle
bad87fee1348bd9aec908846 Create a Bootstrap Headline 0 قم بإنشاء عنوان Bootstrap

Description

الآن دعونا نبني شيئًا ما من الصفر لممارسة مهارات HTML و CSS و Bootstrap. سنقوم ببناء ملعب jQuery ، والذي سنستخدمه قريبًا في تحديات jQuery. للبدء ، أنشئ عنصر h3 ، باستخدام jQuery Playground للنص. قم h3 عنصر h3 الخاص بك مع فئة Bootstrap text-primary ، وقم بتوسيطها مع فئة Bootstrap في مركز text-center .

Instructions

Tests

tests:
  - text: أضف عنصر <code>h3</code> إلى صفحتك.
    testString: 'assert($("h3") && $("h3").length > 0, "Add a <code>h3</code> element to your page.");'
  - text: تأكد من أن عنصر <code>h3</code> يحتوي على علامة إغلاق.
    testString: 'assert(code.match(/<\/h3>/g) && code.match(/<h3/g) && code.match(/<\/h3>/g).length === code.match(/<h3/g).length, "Make sure your <code>h3</code> element has a closing tag.");'
  - text: يجب أن يكون لون عنصر <code>h3</code> الخاص بك عن طريق تطبيق الفصل الدراسي <code>text-primary</code>
    testString: 'assert($("h3").hasClass("text-primary"), "Your <code>h3</code> element should be colored by applying the class <code>text-primary</code>");'
  - text: يجب توسيط عنصر <code>h3</code> الخاص بك من خلال تطبيق <code>text-center</code> الفصل
    testString: 'assert($("h3").hasClass("text-center"), "Your <code>h3</code> element should be centered by applying the class <code>text-center</code>");'
  - text: ''
    testString: 'assert.isTrue((/jquery(\s)+playground/gi).test($("h3").text()), "Your <code>h3</code> element should have the text <code>jQuery Playground</code>.");'

Challenge Seed


Solution

// solution required