freeCodeCamp/curriculum/challenges/russian/01-responsive-web-design/applied-accessibility/wrap-content-in-the-article...

2.3 KiB
Raw Blame History

id title challengeType videoUrl localeTitle
587d774e367417b2b2512aa0 Wrap Content in the article Element 0 Обтекание содержимого в статье Элемент

Description

undefined

Instructions

Camper Cat использовал теги article для обертывания сообщений на своей странице блога, но он забыл использовать их в верхней части. Измените тег div чтобы вместо этого использовать тег article .

Tests

tests:
  - text: Ваш код должен содержать три тега <code>article</code> .
    testString: 'assert($("article").length == 3, "Your code should have three <code>article</code> tags.");'
  - text: У вашего кода не должно быть никаких тегов <code>div</code> .
    testString: 'assert($("div").length == 0, "Your code should not have any <code>div</code> tags.");'

Challenge Seed

<h1>Deep Thoughts with Master Camper Cat</h1>
<main>
  <div>
    <h2>The Garfield Files: Lasagna as Training Fuel?</h2>
    <p>The internet is littered with varying opinions on nutritional paradigms, from catnip paleo to hairball cleanses. But let's turn our attention to an often overlooked fitness fuel, and examine the protein-carb-NOM trifecta that is lasagna...</p>
  </div>

  <img src="samuraiSwords.jpeg" alt="">

  <article>
    <h2>Defeating your Foe: the Red Dot is Ours!</h2>
    <p>Felines the world over have been waging war on the most persistent of foes. This red nemesis combines both cunning stealth and lightening speed. But chin up, fellow fighters, our time for victory may soon be near...</p>
  </article>

  <img src="samuraiSwords.jpeg" alt="">

  <article>
    <h2>Is Chuck Norris a Cat Person?</h2>
    <p>Chuck Norris is widely regarded as the premier martial artist on the planet, and it's a complete coincidence anyone who disagrees with this fact mysteriously disappears soon after. But the real question is, is he a cat person?...</p>
  </article>
</main>

Solution

// solution required