--- id: 587d781c367417b2b2512ac3 title: Set the font-weight for Multiple Heading Elements challengeType: 0 videoUrl: '' localeTitle: 设置多个标题元素的字体粗细 --- ## Description
您在最后一次挑战中设置每个标题标记的font-size ,在这里您将调整font-weightfont-weight属性设置文本部分中字符的粗细或粗细。
## Instructions
## Tests
```yml tests: - text: 您的代码应将h1标记的font-weight属性设置为800。 testString: 'assert($("h1").css("font-weight") == "800", "Your code should set the font-weight property for the h1 tag to 800.");' - text: 您的代码应将h2标记的font-weight属性设置为600。 testString: 'assert($("h2").css("font-weight") == "600", "Your code should set the font-weight property for the h2 tag to 600.");' - text: 您的代码应将h3标记的font-weight属性设置为500。 testString: 'assert($("h3").css("font-weight") == "500", "Your code should set the font-weight property for the h3 tag to 500.");' - text: 您的代码应将h4标记的font-weight属性设置为400。 testString: 'assert($("h4").css("font-weight") == "400", "Your code should set the font-weight property for the h4 tag to 400.");' - text: 您的代码应将h5标记的font-weight属性设置为300。 testString: 'assert($("h5").css("font-weight") == "300", "Your code should set the font-weight property for the h5 tag to 300.");' - text: 您的代码应将h6标记的font-weight属性设置为200。 testString: 'assert($("h6").css("font-weight") == "200", "Your code should set the font-weight property for the h6 tag to 200.");' ```
## Challenge Seed
```html

This is h1 text

This is h2 text

This is h3 text

This is h4 text

This is h5 text
This is h6 text
```
## Solution
```js // solution required ```