Skip to main content

--description--

You set the font-size of each heading tag in the last challenge, here you'll adjust the font-weight.

The font-weight property sets how thick or thin characters are in a section of text.

--instructions--

  • Set the font-weight of the h1 tag to 800.
  • Set the font-weight of the h2 tag to 600.
  • Set the font-weight of the h3 tag to 500.
  • Set the font-weight of the h4 tag to 400.
  • Set the font-weight of the h5 tag to 300.
  • Set the font-weight of the h6 tag to 200.

--hints--

Your code should set the font-weight property for the h1 tag to 800.

assert($('h1').css('font-weight') == '800');

Your code should set the font-weight property for the h2 tag to 600.

assert($('h2').css('font-weight') == '600');

Your code should set the font-weight property for the h3 tag to 500.

assert($('h3').css('font-weight') == '500');

Your code should set the font-weight property for the h4 tag to 400.

assert($('h4').css('font-weight') == '400');

Your code should set the font-weight property for the h5 tag to 300.

assert($('h5').css('font-weight') == '300');

Your code should set the font-weight property for the h6 tag to 200.

assert($('h6').css('font-weight') == '200');

--seed--

--seed-contents--

<style>
h1 {
font-size: 68px;

}
h2 {
font-size: 52px;

}
h3 {
font-size: 40px;

}
h4 {
font-size: 32px;

}
h5 {
font-size: 21px;

}
h6 {
font-size: 14px;

}
</style>
<h1>This is h1 text</h1>
<h2>This is h2 text</h2>
<h3>This is h3 text</h3>
<h4>This is h4 text</h4>
<h5>This is h5 text</h5>
<h6>This is h6 text</h6>

--solutions--

<style>
h1 {
font-size: 68px;
font-weight: 800;
}
h2 {
font-size: 52px;
font-weight: 600;
}
h3 {
font-size: 40px;
font-weight: 500;
}
h4 {
font-size: 32px;
font-weight: 400;
}
h5 {
font-size: 21px;
font-weight: 300;
}
h6 {
font-size: 14px;
font-weight: 200;
}
</style>
<h1>This is h1 text</h1>
<h2>This is h2 text</h2>
<h3>This is h3 text</h3>
<h4>This is h4 text</h4>
<h5>This is h5 text</h5>
<h6>This is h6 text</h6>