This forum is now read-only. Please use our new forums! Go to forums

banner
Close banner
0 points
Submitted by fishnphil
almost 11 years

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

Hi,

After entering some tags and text in between the

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.

Answer 51c061f08c1ccc399200c2be

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>
points
Submitted by Eyad
almost 11 years

2 comments

fishnphil almost 11 years

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.

Eyad almost 11 years

No problem .. we do nothing

Answer 51bfffb58c1ccc7e020077c7

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

points
Submitted by Michele
almost 11 years

1 comments

fishnphil almost 11 years

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.