HTML Basics II: Font color


#1


The code won't allow me to change the font-size on either the header or the paragraph. Both of them stay the same regardless of the size I enter.

https://www.codecademy.com/courses/web-beginner-en-y2Yjd/1/3?curriculum_id=50579fb998b470000202dc8b


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


#2

after font-size, there should be a colon not a equal sign


#3

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