23. Many selectors, many properties


#1

Hi! I'm stuck on this, did you see anything wrong? it says that h1 does not have font-family Verdana
HTML







Practice CSS + HTML


My first web page



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

I hope you can help me please!


I'm on the exercise titled ".23 Many selectors, many properties"
#2

if you edit/update your question, leave a reply so i get a notification. Your html code is not visible, take the following steps to make it visible:


#3

Can you pls. help me with instruction no. 03 - how to change the the background color of the text within the span tags? How do I write it in CSS?


#4

well, p is the css selector for <p></p> so what do you think the css selector for <span</span> is?

general css syntax:

selector {
  property: value;
}

the property is provided in the exercise (background-color)the value is also given. Should be straight forward


#5

What is the CSS selector for Span tags?


#6

the same as the html opening tag of span but then with the greater-than and lesser-than symbol.


#7

got it, Thanks :smiley:


#8
   
I cannot, for the life of me figure what is wrong with my code! Please help! I keep getting the "Don't forget to set your h1 font to Verdana" error. 





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







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

#9

href, type and rel are attributes you need to add to your <link> tag, they are not html tags, like so:

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

#10

i have the same problem
plz help


#11

i can only help you if you post your code


#13


#14

check your link to stylesheet, nothing you wrote in css is visible in the output screen. If you need help with that, post (please not a print screen) your html code to the forum, use the instructions i provided earlier, if that doesn't work, try this. the backtick is located above the tab key on your keyboard


#16

your second attribute (ref) should be rel

If that doesn't fix it, copy paste your code the forum, it is really hard to work with print screens


#17

ok thanx
and sorry for screenshot


#18

ref to rel
work :smile:
thanx


#19

I'm Stuck...on exercise 23

this is my html code

and this is my css

h1 {
font-family: Verdana;
color: #576d94;
}

p{
font-size: 18px;
color: #4a4943;
}


#20

Your link to stylesheet is wrong, the third attribute of <link> should be href not ahref


#21

I can't figure out what I've done wrong either.

html:

<!DOCTYPE html>
<html>
	<head>
		<linktype="text/css" rel="stylesheet" href="stylesheet.css"></link>           
		<title>Result</title>
	</head>
	<body>
	    <h1>This is a lesson</h1>
	    <p>This is a paragraph. There are many others like it but this one is mine.</p>
	</body>
</html>

css:
h1{
font-family: Verdana;
color: #576D94;
}

p{
font-size:18px;
color:#4a4943;
}


#23

your link to stylesheet is broken

attributes are seperated by spaces, like so:

<th colspan="2">

now look at your <link>, not all attributes are seperated by spaces