HTML II Basics: Font color Why isn't my header green?


#1

Here's the code:

<!DOCTYPE html>
<html>
<head>
<title>Changing the colors!</title>
</head>
<body>
<h1 stlye="color:green;font-size:16px">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>

When I run the code, the big Heading shows up black instead of green, why is this?


#2

Because you misspelled style. For next time this might help:


#3

Thanks! I'm surprised I din't see that. XD


#4

How did you modify it? I'm stuck here.


#5

@megawhiz79788 Open a new topic paste in code + error + lesson