MARY7
December 8, 2024, 10:14am
1
Tell us what’s happening:
i write correct code but my code is not running any one help me
Your code so far
<!DOCTYPE html>
<html lang="en">
<!-- User Editable Region -->
<head><body>
<meta charset="utf-8" />
<title>Cafe Menu</title>
</head></body>
<!-- User Editable Region -->
</html>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0
Challenge Information:
Learn Basic CSS by Building a Cafe Menu - Step 4
Ray13
December 8, 2024, 10:34am
2
Hi there! Why opening body tag is inside your head?
MARY7
December 8, 2024, 10:39am
5
now i write below the head but code doesnot run
Ray13
December 8, 2024, 10:40am
6
Share your updated code, please
Ray13
December 8, 2024, 10:48am
8
Please don’t send screenshots of your code. To share your code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.
See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').
Ray13
December 8, 2024, 10:49am
9
And your opening body tag should go below head too
Ray13
December 8, 2024, 12:55pm
10
Check this link to find the examples:
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
Hey Buddy, Here Do you think you need to add the element <body> after your <head>
MARY7:
<head><body>
Or don’t you think it should be come after your head element
<head>This is a heading element </head>
See here is the body element given below…
<body>
<h1>This is the head element</h1>
<p>This is the p tag</p>
</body>
Now you need to learn that your body element should come after head element
Hope You Understand !!!