What is wrong with this code? Help! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 11

What is wrong with this code? Help!

What is wrong with this code? <!DOCTYPE html> <html> <head> <title>Welcome to Oregon!</title> </head> </html> Please help me! This is so confusing! Why does it not work? Please,please,please help me!

13th Jul 2019, 9:35 PM
PeculiarP
PeculiarP - avatar
22 Answers
+ 16
It's like a man without a body.
14th Jul 2019, 1:40 AM
Sonic
Sonic - avatar
+ 16
The No Body code ,😁😁
14th Jul 2019, 6:26 AM
Mehdi Eslami
Mehdi Eslami - avatar
+ 5
<!doctype html> <html> <head> <title>Welcome to Oregon!</title> </head> <body> Welcome to Oregon!</body> </html>
15th Jul 2019, 3:12 AM
Ben Lane
Ben Lane - avatar
15th Jul 2019, 5:48 AM
Farhanaz 🌟
Farhanaz 🌟 - avatar
+ 2
You should use <body> tag and put some codes to there to appear on the screen!
13th Jul 2019, 9:44 PM
Aram Samad MalaAbid
Aram Samad MalaAbid - avatar
+ 2
Ok
13th Jul 2019, 9:48 PM
PeculiarP
PeculiarP - avatar
+ 2
You are <body>-LESS 😁
14th Jul 2019, 5:15 AM
Sanjay Kamath
Sanjay Kamath - avatar
+ 2
14th Jul 2019, 3:20 PM
Jella
Jella - avatar
+ 2
Dude, <Body> ... </Body> is the visual part of the code. You have forgotten That!
15th Jul 2019, 7:20 AM
Keivan Ipchi
Keivan Ipchi - avatar
+ 2
Ur code is absolutely correct... to print nothing...
15th Jul 2019, 10:18 AM
Ayush Pandey
Ayush Pandey - avatar
+ 2
Their is nothing wrong with your code. Just that it doesn't have a "body" content i.e what to display so there for your code displays only the "title" at the title bar of the webpage.
18th Jul 2019, 8:58 PM
Daniel Mark Anemhen
Daniel Mark Anemhen - avatar
+ 2
PeculiarP No body. Should be: <!DOCTYPE html> <html> <head> <title> Welcome to Oregon! </title> </head> <body> <!-- Visible content goes here --> </body> </html> If you are wondering, <!-- This is a comment -->
25th Jul 2019, 3:11 PM
TheAmazingCoder2307
+ 2
<body> </body> is mandatory for visual part of html document.
31st Jul 2019, 2:01 PM
ram roop Passionate to Learn Coding
ram roop Passionate to Learn Coding - avatar
+ 1
Nobody to show-up
14th Jul 2019, 3:48 AM
Oluwaseun Shaydus Oni
Oluwaseun Shaydus Oni - avatar
+ 1
Is not full code where is <body> part
14th Jul 2019, 9:09 AM
Cabdixakiim
Cabdixakiim - avatar
+ 1
Is there a space between DOCTYPE and html?
14th Jul 2019, 3:20 PM
Ahmed
Ahmed  - avatar
+ 1
Dude, you were able to type this question because you have a body, give it a body too.
15th Jul 2019, 9:38 AM
Dauda Kolo
+ 1
you dont use body tag. body is main content of html.
20th Jul 2019, 4:07 PM
Md Mostafa Kabir
Md Mostafa Kabir - avatar
0
Hey PeculiarP the body tag is the main visible part of any html doc. So you must use a <body> tag after a <head> tag..
14th Jul 2019, 3:02 AM
Aman Tyagi
Aman Tyagi - avatar
0
use <p> tag to write some text also
15th Jul 2019, 9:42 AM
suraj suman