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

Tell us what’s happening:

Can someone tell me if i did this right?
I’m sure I did this right but the hinting thing just thinks otherwise
it just keeps saying " Your html element should have an opening tag. Don’t forget the lang attribute.".

Your code so far

strong text

<!-- User Editable Region -->

<!DOCTYPE html>
<html lang="eng">
    <link rel="stylesheet" href="styles.css">

<!-- User Editable Region -->

Your browser information:

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

Challenge Information:

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

Hey there, welcome to the forum.

Your solution is missing a few steps (instructions asked you to add a title and meta tag for charset), but I think the main issue is coming from what you set your lang to. It’s en and not eng as you have.

Hope this helps

Oh! Also how do you link the css file again? I just came back to learning code after stopping for a while and I’ve already forgotten the most simple thingsin html

You’ve already linked the css file. The link tag you have in the head is how you do it. Good luck on your learning btw!

1 Like

Thanks you too! Hope you do well in your courses!


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