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

Tell us what’s happening:

I have never coded before and I have no idea what to do for the first part Ive copied code from someone else and it didnt work I feel like theres not much direction on how to do it

Your code so far


<!-- User Editable Region -->

<!DOCTYPE html>
<htmllang="eng"
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=, initial-scale=1.0">
    <title>RPG - Dragon Destroyer</title>
    <link rel="stylesheet" href="styl.css">

</head>

<body>
<div id="game">a</div>
</body>

<!-- User Editable Region -->

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36

Challenge Information:

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

Welcome to the community @Kratos !

Good attempt!

Small error here as the space between the html and lang is missing, and the value should only be “en”.

The instructions are only asking for one meta element at this time with UTF -8.

This has a small typing error, which we all make sometimes. It should be styles.css .

Wishing you good progress.

1 Like

Hello and welcome!

I wouldn’t recommend going into this JavaScript course before learning HTML/ CSS first. You would try to learn three vast topics at once and might give up too early.
I recommend starting with the FCC Responsive Webdesign course and then move on to JS:

https://www.freecodecamp.org/learn/2022/responsive-web-design/

You will need HTML and CSS anyway if you want to work in web development.
You will be building your first small web projects in this course and see what you can already achieve just using HTML/CSS!

1 Like