This forum is now read-only. Please use our new forums at discuss.codecademy.com.

HTML Basics Forum

View Course » View Exercise

62 points
0b9d15e38fea9cf4154335d7dc398872?s=140&d=retro
Submitted by
fishnphil
almost 4 years ago

System telling me I forgot to add something between <html> tags, but I did

Hi,

After entering some tags and text in between the tags, as instructed, the system tells me that I forgot to add something between the tags. I'm puzzled.

Here is the code that I entered:

<!DOCTYPE HTML>
<html><p>This is a new paragraph on the HTML page.</p>
    <p>Now I will present an unordered list:</p>
    <ul><li>Item One</li>
        <li>Item Two</li>
        <li>Item Three</li>
        <li>Item Four</li>
    </ul></html>

Here is the error message that I get from the system:

Oops, try again! Don't forget to write something between your tags!

I tried simplifying the code to:

<!DOCTYPE HTML>
<html><p>This is a new paragraph on the HTML page.</p></html>

I still get the same error message after clicking "Save and Submit Code". Is there a problem with the system or did I interpret the instructions incorrectly?

Thanks.


1 vote

permalink

You may forget the <body> tag.

<!DOCTYPE html>
<html>
<body>
<p>This is a new paragraph on the HTML page.</p>
</body>
</html>

581 points
Ae89ee448046ca3b0d3c18562d54db22?s=140&d=retro
Submitted by
Eyadoo
almost 4 years ago

2 Comments

0b9d15e38fea9cf4154335d7dc398872?s=140&d=retro fishnphil almost 4 years ago

Thank you for the suggestion. Breaking up the code into separate lines seemed to solve the problem. I had resolved my problem before you and Michele had a chance to respond and I posted what I had done so everyone would know that I solved the problem, but for some reason my last comment did not get added to the conversation thread. I apologize. I will verify that all my comments are added before I leave the forum from now on. Thanks again.

Ae89ee448046ca3b0d3c18562d54db22?s=140&d=retro Eyadoo almost 4 years ago

No problem .. we do nothing


0 votes

permalink

I would write it as

<!DOCTYPE html>
<html>
<p>This is a paragraph</p>
</html>

like.. i would separate it out or... post me the original starting of code

139 points
51be14b39c4e9db688020ae0_603788328
Submitted by
Michele
almost 4 years ago

1 Comment

0b9d15e38fea9cf4154335d7dc398872?s=140&d=retro fishnphil almost 4 years ago

Thank you for your input Michele. I tried your suggestion before you or Eyadoo had a chance to respond to my original question and it seemed to solve the problem. I added another comment to the thread that I started explaining that I had figured out what I did wrong, but for some reason the comment didn't get added to the thread. I apologize. Next time I will verify that all my comments are on the thread. Thanks again.