This forum is now read-only. Please use our new forums! Go to forums

0 points
over 8 years

I don't understand what I'm doing wrong (12/26)

/* CSS comment*/ h1 { font-family: Verdana; } h3 { font-family: Courier; } p { color: purple; }

I tried to submit this and it keeps asking if I remembered to make my h1 font-family Verdana?

Answer 55d22e30937676778b000504

5 votes

Permalink

Hi, The code you have written above, is fine. There is nothing wrong with it, but the problem is on the “index.html” page/tab.

In Instructions, the first things it says, it to: “Add a to stylesheet.css between your tags.

This mean that you need to tell your html page to get the CSS another page.In simple words, telling your HTML page to get the CSS from a particular page.

So, you use the link tag (example below) to tell the HTML page to link another page like this:

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

In our case, the CSS file is called “Stylesheet.css“, so our code will look like this:

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

Hope this makes sense to you and everyone who is looking for help :-) Any questions or problems, with this activity, than comment here and I will get a notification and than I will be happy to help.

Thanks, Waleed

points
Submitted by Waleed
over 8 years

2 comments

James Field over 8 years

I also couldn’t see what was wrong and then saw I missed the final / before >. Thanks for the answer

Bill Chamis over 8 years

Waleed, I’m still seeing this error, I’m afraid, and I have added exactly what you have to my html file (and added exactly what Connie has to the CSS file.

Answer 55e32a2286f552130c000374

1 vote

Permalink

Firstly thanks for letting me know about your problume. You can refresh the page and try again but i assume that i you have already tried that few times. I recommend you to reset your code and try writing compleating the exercise again. If still donse’t work than here is the full code which should work:

<!DOCTYPE html>

Copy all the code and replace with the rest of the code. If you still have problumes, than let me know and i will try my best to help you. Enjoy !

points
Submitted by Waleed
over 8 years