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


Here's the code:

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

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


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


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


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


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