Set-the-font-weight-for-multiple-heading-elements -(solved already)

this is my code:

h2 { font-size: 52px; font-weight:600px; } h3 { font-size: 40px; font-weight:500px; } h4 { font-size: 32px; font-weight:400px; } h5 { font-size: 21px; font-weight:300px } h6 { font-size: 14px; font-weight:200px; }

This is h1 text

This is h2 text

This is h3 text

This is h4 text

This is h5 text
This is h6 text

error: got an error message
// running tests Your code should set the

font-weight

property for the

h1

tag to 800. Your code should set the

font-weight

property for the

h2

tag to 600. Your code should set the

font-weight

property for the

h3

tag to 500. Your code should set the

font-weight

property for the

h4

tag to 400. Your code should set the

font-weight

property for the

h5

tag to 300. Your code should set the

font-weight

property for the

h6

tag to 200. // tests completed

NOOB says:
you need to use the default layout for posting , from a challenges ‘Get Help’ option, into the forum. your post a bit confusing.

and ‘font-weight’ units are not in pixels.

ah ok i got it, the problem did not mention that it should be pixel in size only a given number…(ex: {font-size:800;} …it should be no unit hahahahaha

1 Like

Font weight is a really odd one. It’s not percentage. It’s not pixels. It’s just these numbers. And as far as I know, it’s always whole units of 100.

1 Like