Code Academy

Posts 115 of 23 · Page 1 of 2
Code Academy
I am currently learning HTML and I am stuck I mean whats wrong with this code?
<!DOCTYPE html>
<html>
<head>
<title>Changing the colors!</title>
</head>
<body>
<h2><h2 style="color:green; font-size:16px">Big Heading</h2>
<p><p style="color:violet">The giant bear and a little duck were friends.</p>
<p><p style="color:red; font-size:10px">But the bear got hungry and ate the duck.</p>
</body>
</html>

It says "You forgot to make paragraph 2 red" WTF man it is red.
PROGRAMMING SECTION BOI
WE ARE LONELY THERE
God you need CS, jesus.
Quote Originally Posted by Wyo View Post
God you need CS, jesus.
I think you need CS, I mean you are always talking about it.


---------- Post added at 08:23 PM ---------- Previous post was at 08:23 PM ----------

Quote Originally Posted by Auxilium View Post
PROGRAMMING SECTION BOI
WE ARE LONELY THERE
The programing section is dead, so I post here.
Quote Originally Posted by Tide View Post

I think you need CS, I mean you are always talking about it.
I think you should stop spamming general + post in the right section.
Quote Originally Posted by Wyo View Post


I think you should stop spamming general + post in the right section.
Spam because?
also the last post in Web development was 7 hrs ago.
Quote Originally Posted by Tide View Post

I think you need CS, I mean you are always talking about it.


---------- Post added at 08:23 PM ---------- Previous post was at 08:23 PM ----------


The programing section is dead, so I post here.
Only dead because there are too many noobs leaching and don't know what namespaces and classes are yet trying to make hacks ohlawd /
Quote Originally Posted by Tide View Post

I think you need CS, I mean you are always talking about it.


---------- Post added at 08:23 PM ---------- Previous post was at 08:23 PM ----------


The programing section is dead, so I post here.
Well this isn't the section to post it in so post it there and wait.
Wrong section.
<p><p style="color:violet">The giant bear and a little duck were friends.</p>
<p><p style="color:red; font-size:10px">But the bear got hungry and ate the duck.</p>
You have double paragraphs or some shit going on there....

<p><p style="color:violet"> - 2 starting paragraph tags
<p><p style="color:red; font-size:10px"> - another 2
Quote Originally Posted by Dave84311 View Post
You have double paragraphs or some shit going on there....

<p><p style="color:violet"> - 2 starting paragraph tags
<p><p style="color:red; font-size:10px"> - another 2
Thank you .
Quote Originally Posted by Dave84311 View Post
You have double paragraphs or some shit going on there....

<p><p style="color:violet"> - 2 starting paragraph tags
<p><p style="color:red; font-size:10px"> - another 2
And Dave saves the day with something useful.
Yeah. You're doing inline css right now, so you do:

<p style=""> </p>
Quote Originally Posted by Tide View Post
I am currently learning HTML and I am stuck I mean whats wrong with this code?
<!DOCTYPE html>
<html>
<head>
<title>Changing the colors!</title>
</head>
<body>
<h2><h2 style="color:green; font-size:16px">Big Heading</h2>
<p><p style="color:violet">The giant bear and a little duck were friends.</p>
<p><p style="color:red; font-size:10px">But the bear got hungry and ate the duck.</p>
</body>
</html>

It says "You forgot to make paragraph 2 red" WTF man it is red.
Remove the first <h2>.
Remove the <p> in front of both paragraphs, you have already declared the paragraph. What you did was tell the browser: "New Paragraph. New Paragraph with style parameters. New Paragraph. New Paragraph with style parameters."

You have declared four paragraphs. You have only closed two paragraphs. That is your issue.
Posts 115 of 23 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?