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

HTML Basics Forum

View Course » View Exercise

2273 points
57bd121a8369662abf0002ea_201442639
Submitted by
Todd
over 4 years ago

1.3 Section error

As with 1.2, there is a bit of confusion. Having the correctly nested tags is important with HTML so the browser renders the page correctly.

  1. Put in the !DOCTYPE HTML tag.
  2. Put in the html opening and closing tags.
  3. Between the html tags, write whatever you like.

Your !DOCTYPE tag IS the opening tag, thus, the 2. & 3. steps NEED to be & tags, NOT & . You have alredy opened your tag, all you need to do is close it.

My code;

<!DOCTYPE html>
<body>
    <h1>Hello.</h1>
</body>
</html>

Granted, with 1.2 and 1.3, it may work and you may be able to move on to the next section, but correctly explaining properly nested tags in HTML really needs to be done here and these sections should be fixed.


-1 votes

permalink

Simply leave out the Body and headers this is the beginning so you don't need to work so hard
This is for 1.3

<!DOCTYPE html>
(html)
Hello
(/html)

The (, ), stand for the < > because if i write the code correctly it will not show up.
I hope I helped.

239 points
50a93fa5a01a5ce63e000930_849838697
Submitted by
Ryan
over 4 years ago

1 Comment

57bd121a8369662abf0002ea_201442639 Todd over 4 years ago

The point is to get people in the habit of coding an HTML correctly, not taking the easy way out just by skipping over a tag in the intro what was I was inferring.


-2 votes

permalink

lolz
i like baseball

152 points
50a3d4e8fa70110aae005cc0_320159761
Submitted by
Adam Shaffer
over 4 years ago