Tell us what’s happening:
Describe your issue in detail here.
i am stuck in this code
rpg -Dragon Repeller
### Your code so far
<!-- User Editable Region -->
<!DOCKTYPE>
<html></html>
<head></head>
<body>
<div> game/<div>
</body>
<mate></mate>
<charset>/<charset>
<title>RPG-Dragon Repeller/<title>
<link>style.css/<link>
<!-- User Editable Region -->
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0
Challenge Information:
Learn Basic JavaScript by Building a Role Playing Game - Step 1
system
2
You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Teller
3
Welcome to the forum @hlatshwayolifa06
<!DOCKTYPE>
<html></html>
<head></head>
<body>
<div> game/<div>
</body>
<mate></mate>
<charset>/<charset>
<title>RPG-Dragon Repeller/<title>
<link>style.css/<link>
You have a few syntax errors.
The first line of code is not spelt correctly, and is missing the html attribute.
On the second line:
- the opening tag is missing the lang attribute
- the closing html tag needs to go to the end of the file.
The head element should contain the meta, link, and title elements.
Regarding the syntax for these first two elements, you may find visiting/revisiting the cat photo app helpful.
The body element needs to be placed after the head element.
You have back slashes between some of the tags, which is not required.
The id attribute for the div is not present in your code.
Happy coding
system
Closed
4
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.