Files
freeCodeCamp/curriculum/challenges/russian/01-responsive-web-design/applied-visual-design/set-the-font-size-for-multiple-heading-elements.russian.md

102 lines
3.2 KiB
Markdown
Raw Normal View History

---
id: 587d781c367417b2b2512ac2
title: Set the font-size for Multiple Heading Elements
challengeType: 0
videoUrl: https://scrimba.com/c/cPpQNT3
forumTopicId: 301067
localeTitle: Установите размер шрифта для нескольких элементов заголовка
---
## Description
<section id='description'>
Свойство <code>font-size</code> используется для указания того, насколько большой текст в данном элементе. Это правило может использоваться для нескольких элементов для создания визуальной согласованности текста на странице. В этой задаче вы установите значения для всех тегов <code>h1</code> <code>h6</code> чтобы сбалансировать размеры заголовков.
</section>
## Instructions
<section id='instructions'>
<ul><li>Set the <code>font-size</code> of the <code>h1</code> tag to 68px.</li><li>Set the <code>font-size</code> of the <code>h2</code> tag to 52px.</li><li>Set the <code>font-size</code> of the <code>h3</code> tag to 40px.</li><li>Set the <code>font-size</code> of the <code>h4</code> tag to 32px.</li><li>Set the <code>font-size</code> of the <code>h5</code> tag to 21px.</li><li>Set the <code>font-size</code> of the <code>h6</code> tag to 14px.</li></ul>
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: Your code should set the <code>font-size</code> property for the <code>h1</code> tag to 68 pixels.
testString: assert($('h1').css('font-size') == '68px');
- text: Your code should set the <code>font-size</code> property for the <code>h2</code> tag to 52 pixels.
testString: assert($('h2').css('font-size') == '52px');
- text: Your code should set the <code>font-size</code> property for the <code>h3</code> tag to 40 pixels.
testString: assert($('h3').css('font-size') == '40px');
- text: Your code should set the <code>font-size</code> property for the <code>h4</code> tag to 32 pixels.
testString: assert($('h4').css('font-size') == '32px');
- text: Your code should set the <code>font-size</code> property for the <code>h5</code> tag to 21 pixels.
testString: assert($('h5').css('font-size') == '21px');
- text: Your code should set the <code>font-size</code> property for the <code>h6</code> tag to 14 pixels.
testString: assert($('h6').css('font-size') == '14px');
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='html-seed'>
```html
<style>
</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>
```
</div>
</section>
## Solution
<section id='solution'>
```html
<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>
```
</section>