freeCodeCamp/curriculum/challenges/portuguese/01-responsive-web-design/applied-visual-design/set-the-font-weight-for-mul...

3.6 KiB

id title challengeType videoUrl localeTitle
587d781c367417b2b2512ac3 Set the font-weight for Multiple Heading Elements 0 Definir o peso da fonte para vários elementos de título

Description

Você define o font-size da font-size de cada tag de cabeçalho no último desafio, aqui você ajusta o font-weight da font-weight . A propriedade font-weight define a espessura ou a espessura dos caracteres em uma seção do texto.

Instructions

  • Defina o font-weight da font-weight da tag h1 para 800.
  • Defina o font-weight da font-weight da tag h2 para 600.
  • Defina o font-weight da font-weight da tag h3 para 500.
  • Defina o font-weight da font-weight da tag h4 para 400.
  • Defina o font-weight da font-weight da tag h5 para 300.
  • Defina o font-weight da font-weight da tag h6 para 200.

Tests

tests:
  - text: Seu código deve definir a propriedade de <code>font-weight</code> da <code>font-weight</code> para a tag <code>h1</code> como 800.
    testString: 'assert($("h1").css("font-weight") == "800", "Your code should set the <code>font-weight</code> property for the <code>h1</code> tag to 800.");'
  - text: Seu código deve definir a propriedade de <code>font-weight</code> da <code>font-weight</code> para a tag <code>h2</code> como 600.
    testString: 'assert($("h2").css("font-weight") == "600", "Your code should set the <code>font-weight</code> property for the <code>h2</code> tag to 600.");'
  - text: Seu código deve definir a propriedade de <code>font-weight</code> da <code>font-weight</code> para a tag <code>h3</code> como 500.
    testString: 'assert($("h3").css("font-weight") == "500", "Your code should set the <code>font-weight</code> property for the <code>h3</code> tag to 500.");'
  - text: Seu código deve definir a propriedade de <code>font-weight</code> da <code>font-weight</code> para a tag <code>h4</code> como 400.
    testString: 'assert($("h4").css("font-weight") == "400", "Your code should set the <code>font-weight</code> property for the <code>h4</code> tag to 400.");'
  - text: Seu código deve definir a propriedade de <code>font-weight</code> da <code>font-weight</code> para a tag <code>h5</code> como 300.
    testString: 'assert($("h5").css("font-weight") == "300", "Your code should set the <code>font-weight</code> property for the <code>h5</code> tag to 300.");'
  - text: Seu código deve definir a propriedade de <code>font-weight</code> da <code>font-weight</code> para a tag <code>h6</code> como 200.
    testString: 'assert($("h6").css("font-weight") == "200", "Your code should set the <code>font-weight</code> property for the <code>h6</code> tag to 200.");'

Challenge Seed

<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>

Solution

// solution required