HTML Basics II: Font color


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.

<!DOCTYPE html>
		<title>Changing the colors!</title>
		<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>


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


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