Learn Basic JavaScript by Building a Role Playing Game - Step 1

Tell us what’s happening:

I have created my link element but it keeps telling me otherwise

Your code so far


<!-- User Editable Region -->

<!DOCTYPE html>
<html lang="en"></html>
<head>
</head>
<body>
  <div id="game"></div>
</body>
<meta charset="UTF-8">
<title> RPG - Dragons Repeller </title>
<link rel="stylesheet"href="styles.css">

<!-- 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/129.0.0.0 Safari/537.36

Challenge Information:

Learn Basic JavaScript by Building a Role Playing Game - Step 1

these all belong nested within the head element

(also don’t add spaces unless it is clear from the step that they want spaces somewher)

I have done that but it is still showing the same error

please copy the fixed code and post it in your next reply for review

<head>
<meta charset="UTF-8">
<title> RPG - Dragons Repeller </title>
<link rel="stylesheet" href="styles.css">
</head>
this is my code for the head element

remember to remove extra spaces (in your title)

also watch out here. The closing tag for the html element is supposed to be on the last line of your file

I have removed them still did not work. the error is about my link element

Hey there,

Please update the message to include your code. It looks like you forgot that in your last message.

When you enter a code, 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 (').

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.