9. font-color


#1

What do I do when I have everything the way it's supposed to be? Did I make a mistake?






Big title



  1. This item is big Arial.

  2. This item is medium Verdana.

  3. This item is small Impact.




HTML Basics II no.9 Font color
#2

I am so sorry, that was the wrong code, I have no idea what I did wrong??







Big Heading

	<h2 style="color: green; font-size:16px">

		<p style=" color: violet">A giant bear and a little duck were friends.</p>
		<p style="color:red" >But the bear got hungry and ate the duck.</p>
</body>


#3

Could you post your code between back ticks like so please?:

 ```
 //Your code goes here!
 ```

#4

<!DOCTYPE html>
<html>
	<head>
		<title>Changing the colors!</title>
	</head>
	<body>
		<h1 style="color: green; font-size:16px"> Big Heading</h1>
		
		<h2 style="color: green; font-size:16px">
	
			<p style=" color: violet">A giant bear and a little duck were friends.</p>
			<p style="color:red" >But the bear got hungry and ate the duck.</p>
	</body>
</html>

#6

You need to add a semicolon to the end of every CSS statement. Add one to all of them, even if it's the last one.


#7

Also, close your <h2> tag.


#8

It's asking me if I remembered to make the first paragraph violet and yes. I did, I'm probably doing it wrong but I have no idea, because it is clearly violet.


#9

Maybe take away the space before color. Also add a semicolon. And if you don't close your <h2> tag, it will never work.


#10

So it worked for the first one but it's saying there's a problem with my second paragraph, and I literally fixed it like the instructions and examples told me to do and it's saying ''Did you remember to make your second paragraph red?'' I did, maybe you can see a flaw?

<p style="color:red; font-size: 10px" >But the bear got hungry and ate the duck.</p>
	</body>
</html>

#11

And I closed my h2 tag


#12

please post an updated version of your full code


#13

2 posts were split to a new topic: 9. font-color


#14

hey I had the same problem but then I realized I don't have a closing to my "big heading" you should check yours too