23. Many selectors, many properties


#1

Can anyone help, I keep getting this error: "Don't forget to set your h1 font to Verdana!".

HTML

<head>
	<title><link type="text/css" rel="stylesheet" href="stylesheet.css"/></title>
</head>
<body>
<h1>what</h1>
<p>what</p></body>

CSS:

h1 {
font-family: Verdana;
color: #576d94
}
p {
font-size: 18px;
color: #4a4943
}


#2

i think the forgotten semicolons is the problem
"
h1 {
font-family: Verdana;
color: #576d94;
}
p {
font-size: 18px;
color: #4a4943;
}
"
I hope this could help you :slightly_smiling:


#3

Nope it does't work, but thanks anyway


#4

Your link shouldn't be in your title. The link tag needs to be in your head tags..
Since its in your title tag your CSS is not linked to your HTML thus you getting the error as it can't pick up that you set the font-family


#5

Thanks it works now. It was my mistake at exercise 22 I misread title /title instead of head /head but it passed the exercise so I was thinking it was good.


#7

I have the same problem but the solutioon isn't working and I hae tried so many possibilities that don't work I even googled for "how to's" on every different line of code but nothing is working. can someone help pls ?

<!DOCTYPE html>
<html>
	<head>
		<link type="text/css" rel="stylesheet" href="styles.css" />
		<title>Result</title>
	</head>
	<body>
	    <h1>Hello</h1>
	    <p>Hi</p>
	</body>
</html>

#8








This text


That text



h1 {
font-family: Verdana;
color:#576D94;
}
p {
font-size:18px;
color:#4A4943;
}

Got the same error message...
I think I got everything right

Help, please!


#9

You shouldn't have semi colons ; just a single space between each is sufficient


#10

@heronova149, href should match the name of the stylesheet, so you should change styles.css

@cynlav, attributes (href, rel, type) should be separated by spaces, not semi-colons


#11

Thank you guys!
I usually forget the semicolons, this time I went overboard!
Tnx!

:slightly_smiling:


#12

someone please tell me how to make the background color yellow


#13

That is not a requirement in this exercise, please make your own topic with the right exercise, if it is not exercise, put this in your question, also show what you already tried


#14

this is from many selectors many properties

  1. The second paragraph contains text between span tags. Set the background-color of that span to 'yellow'. (See the Hint for help!)

#15

yours is 9. many selectors many properties, this question is 23. many selectors many properties.

So, please make your own topic with the code + error message + question