9. Font color


#1

This doesnt work for me

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

My code


HTML Basics II 9. Font Color (Issue With Font Size)
#2

font-size=
You should have a colon : instead of an equals sign in each case of the above.

10-px
Remove the hyphen -.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.