HTML Basics II no.9 Font color


#1

Please help!! not sure what is wrong??

Instructions
Change the heading color to green and its size to 16px.
Change the color of the first paragraph to violet.
Change the color of the second paragraph to red and its font size to 10px.

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

#2

when you have a paragraph or heading:

<p>i am a paragraph</p>

you can add the style attribute to the opening tag without creating additional opening tags:

<p style="">i am a paragraph</p>

and i you want to have multiply property's + values, you can just separate them by a semi-colon within one style attribute:

<p style="property1: value1; property2: value2;">i am a paragraph</p>

#3

ohhhhhhh!! thank you so much!!! it was super helpful


#4

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


#15