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

HTML Basics Forum

View Course » View Exercise

3 points
4dba17e452a0aa576ea79963131a6b67?s=140&d=retro
Submitted by
Sauraj
about 4 years ago

Anybody please help, tell me where i m wrong.. <!DOCTYPE html> <html><title>bad to the bonez webpage inc</title></html>

Anybody please help, tell me where i m wrong..
<!DOCTYPE html>
bad to the bonez webpage inc


5 votes

permalink

Use "< head >" "< /head >" instead. I had the same problem too :)

89 points
0b8a5cf31459746f6580af732a946999?s=140&d=retro
Submitted by
Jessica Chou
about 4 years ago

5 Comments

F5be87c20122a2b76497defda3350624?s=140&d=retro Tom-e-Code about 4 years ago

This is the correct way:

<!DOCTYPE>


Bad to the Bonez Webpage Inc

Cheers!

Picture Rahul Jaiprakash Baviskar about 4 years ago

what is <!DOCTYPE> ?? why should we use it ?? when i start writing i erased that is that correct??

F5be87c20122a2b76497defda3350624?s=140&d=retro Tom-e-Code about 4 years ago

I aplogize, it's supposed to be: <!DOCTYPE html> Sorry about that. Everything else is correct though.

Ec585c2dd4167f95ca40897b847e9c0d?s=140&d=retro Cody almost 4 years ago

do then <!DOCTYPE HTML>

8047c0945f44923d9635068dcb94933e?s=140&d=retro jayhong about 3 years ago

So I get stuck at the <!DOCTYPE html> so I just gave up.


2 votes

permalink

<!DOCTYPE html>
<html>
<head>
    <title>Bad to the Bonez Webpage Inc</title>
</head>

</html>

707 points
514054429253348717003d5d_100507553
Submitted by
programma1
about 4 years ago

1 Comment

5490ce9295e378cde1000bcf_623839765 TEDWASHERE over 2 years ago

Thanks!! It worked!


1 vote

permalink

<!Doctype html>

< html >
< head >
< title >bad to the bonez webpage inc< /title >
< /head >
< body >
< /body >
< /htm l>
don't use "title" without tag head.

388 points
Be2986960142593c0b2b51bb69e10070?s=140&d=retro
Submitted by
MIke YI
over 2 years ago


0 votes

permalink

The correct way of writing any html document is as below.
The proper sequence is :

  1. Define Doctype: <!DOCTYPE html> (note: Almost all HTML editors can execute your code without doctype statement.But its good practice to use it always to make the code readable.)
  2. Use tag.
  3. Always, there is one and only one header and one body tag in every html code. HTML header is used to define title and some other things that use SEO(Search engine optimization). Also, CSS is declared in head to make code well-defined and readable.
  4. So use and insert before closing head.
  5. then you will use tag that will define actual mark up.
  6. Mistake you've made is you've added without

Your code should be like this :
<!Doctype html>

< html >
< head >
< title >bad to the bonez webpage inc< /title >
< /head >
< body >
< /body >
< /htm l>

309 points
51ab7af76f1c267e920004b2_918835362
Submitted by
Abhijit Suryawanshi
about 4 years ago

3 Comments

423dfb9de49e96c29490e2cbb0c12618?s=140&d=retro Maryam malik over 3 years ago

why

53653471631fe9696d002098_4143800 Angelblade almost 3 years ago

Y? Cause that is the way HTML works.

Be2986960142593c0b2b51bb69e10070?s=140&d=retro MIke YI over 2 years ago

yes,and can be added in the head tag