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

Build Your Own Webpage Forum

View Course » View Exercise

34 points
Dc8e99c7cfc5e662d11d515d02acedfe?s=140&d=retro
Submitted by
hav0xcode
almost 2 years ago

Why will my <!doctype html> tag not register

this is making me mad.


2 votes

permalink

as you learned in html basic, the correct tag is:

<!DOCTYPE html>

with doctype being uppercase.

2457 points
593d545c83696644420003b7_64554016
Submitted by
stetim94
almost 2 years ago

4 Comments

593d545c83696644420003b7_64554016 stetim94 almost 2 years ago

True, but this course sometimes contains xml syntax pieces. And SCT (submission correctness test) is set to only recognize <!DOCTYPE html>

Picture Jesse Good almost 2 years ago

Right, so I think the "correct" answer is "SCT is set to only recognize an uppercase DOCTYPE even though lowercase is valid according to HTML spec."

593d545c83696644420003b7_64554016 stetim94 almost 2 years ago

yes, that is indeed the way it is. But i would still use <!DOCTYPE html> in case i needed to serve xml, plus it is confusing if every html document you use different doctype tags. But apart from that, you are right.


0 votes

permalink

this is also happening to me so frustrating

39 points
Dbfd61b8e380454a9f151761bd506d9e?s=140&d=retro
Submitted by
rsulli
almost 2 years ago


0 votes

permalink

I did use that
stetim

34 points
Dc8e99c7cfc5e662d11d515d02acedfe?s=140&d=retro
Submitted by
hav0xcode
almost 2 years ago

4 Comments

593d545c83696644420003b7_64554016 stetim94 almost 2 years ago

the code you provided you used doctype lowercase instead of uppercase. If you still have a problem, post your full code

Dc8e99c7cfc5e662d11d515d02acedfe?s=140&d=retro hav0xcode almost 2 years ago

I used a uppercase doctype anyway I figured it out bro. thanks anyway

Picture Navya Saini almost 2 years ago

how did you do it? I am having the same problem

593d545c83696644420003b7_64554016 stetim94 almost 2 years ago

well, if you have a problem, post your code. We can't help you if you say you got the same problem