curriculum/challenges/english/blocks/workshop-magazine/614389f601bb4f611db98563.md
Below your .author element, create a new div element with the class social-icons.
Add five a elements within that new div, and give them the following href attributes.
a element should have an href set to https://www.facebook.com/freecodecamp.a element should have an href set to https://twitter.com/freecodecamp.a element should have an href set to https://instagram.com/freecodecamp.a element should have an href set to https://www.linkedin.com/school/free-code-camp.a element should have an href set to https://www.youtube.com/freecodecamp.You should create a new div element.
assert.lengthOf(document.querySelectorAll('div'), 2);
Your new div element should come after your .author element.
assert.equal(document.querySelector('.author')?.nextElementSibling?.localName, 'div');
Your new div element should have the class social-icons.
assert.isTrue(document.querySelector('.author')?.nextElementSibling?.classList?.contains('social-icons'));
Your .social-icons element should have five a elements.
assert.lengthOf(document.querySelector('.social-icons')?.querySelectorAll('a'), 5);
Your first a element should have an href set to https://www.facebook.com/freecodecamp.
assert.include(document.querySelector('.social-icons')?.querySelectorAll('a')?.[0]?.getAttribute('href'), 'https://www.facebook.com/freecodecamp');
Your second a element should have an href set to https://twitter.com/freecodecamp.
assert.include(document.querySelector('.social-icons')?.querySelectorAll('a')?.[1]?.getAttribute('href'), 'https://twitter.com/freecodecamp');
Your third a element should have an href set to https://instagram.com/freecodecamp.
assert.include(document.querySelector('.social-icons')?.querySelectorAll('a')?.[2]?.getAttribute('href'), 'https://instagram.com/freecodecamp');
Your fourth a element should have an href set to https://www.linkedin.com/school/free-code-camp.
assert.include(document.querySelector('.social-icons')?.querySelectorAll('a')?.[3]?.getAttribute('href'), 'https://www.linkedin.com/school/free-code-camp');
Your fifth a element should have an href set to https://www.youtube.com/freecodecamp.
assert.include(document.querySelector('.social-icons')?.querySelectorAll('a')?.[4]?.getAttribute('href'), 'https://www.youtube.com/freecodecamp');
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Magazine</title>
<link
href="https://fonts.googleapis.com/css?family=Anton%7CBaskervville%7CRaleway&display=swap"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.8.2/css/all.css"
/>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<main>
<section class="heading">
<header class="hero">
<h1 class="hero-title">OUR NEW CURRICULUM</h1>
<p class="hero-subtitle">
Our efforts to restructure our curriculum with a more project-based
focus
</p>
</header>
<div class="author">
<p class="author-name">
By
<a href="https://freecodecamp.org" target="_blank" rel="noreferrer"
>freeCodeCamp</a
>
</p>
<p class="publish-date">March 7, 2019</p>
</div>
--fcc-editable-region--
--fcc-editable-region--
</section>
</main>
</body>
</html>