This forum is now read-only. Please use our new forums at discuss.codecademy.com.

CSS: An Overview Forum

View Course » View Exercise

272 points
512705109f4783c652000423_385068685
Submitted by
sai kiran
over 3 years ago

How to link the html and css file?

<!DOCTYPE html>

    <title>Result</title>
</head>
<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
<body>
    <p>I want to be SIZE 44 font!</p>
</body>

i have followed the instructions but i still dont get it


0 votes

permalink

Your link is fine, is there something you do not understand? what is the error?

2949 points
593d545c83696644420003b7_64554016
Submitted by
stetim94
over 3 years ago

6 Comments

512705109f4783c652000423_385068685 sai kiran over 3 years ago

This is what i get "Oops, try again. Did you remember to link your stylesheet with your HTML file? It looks like your paragraph's font-size is 44.4444465637207px instead of 44px."

593d545c83696644420003b7_64554016 stetim94 over 3 years ago

set your zoom to 100% using ctrl 0?

512705109f4783c652000423_385068685 sai kiran over 3 years ago

dude thanks it worked :D

Picture webRunner97319 over 3 years ago

but why did it work??

593d545c83696644420003b7_64554016 stetim94 over 3 years ago

because zoom changes the line thickness.

Picture webRunner97319 over 3 years ago

Okay thanks :) question everything!


0 votes

permalink

Hello Sai, please correct, your link is OUTSIDE the HEAD, and it must be inside it like below :

<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
</head>

Please check the exercise 2/26 What CSS is, and you will note a good syntax.

365 points
543fc82f631fe988640020d7_382532424
Submitted by
Tobias Páez
about 3 years ago