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

2.0 KiB
Raw Blame History

id title challengeType forumTopicId localeTitle
bad87fee1348bd9aec908846 Create a Bootstrap Headline 0 16812 Создать заголовок Bootstrap

Description

Теперь давайте построим что-то с нуля, чтобы практиковать наши навыки HTML, CSS и Bootstrap. Мы построим игровую площадку jQuery, которую мы скоро станем использовать в наших задачах jQuery. Для начала создайте элемент h3 с текстовой jQuery Playground . Разделите свой элемент h3 text-primary исходным классом Bootstrap и центрируйте его с помощью text-center Bootstrap.

Instructions

Tests

tests:
  - text: Add a <code>h3</code> element to your page.
    testString: assert($("h3") && $("h3").length > 0);
  - text: Make sure your <code>h3</code> element has a closing tag.
    testString: assert(code.match(/<\/h3>/g) && code.match(/<h3/g) && code.match(/<\/h3>/g).length === code.match(/<h3/g).length);
  - text: Your <code>h3</code> element should be colored by applying the class <code>text-primary</code>
    testString: assert($("h3").hasClass("text-primary"));
  - text: Your <code>h3</code> element should be centered by applying the class <code>text-center</code>
    testString: assert($("h3").hasClass("text-center"));
  - text: Your <code>h3</code> element should have the text <code>jQuery Playground</code>.
    testString: assert.isTrue((/jquery(\s)+playground/gi).test($("h3").text()));

Challenge Seed


Solution

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