Using code in browswr

whats wrong with my code cannot run to browser?

<!DOCTYPE html>
<html>
<head></head>
<body>
<h2 style="color: red;">CatPhotoApp</h2>
<main>
  <p>Click here to view more <a href="#">cat photos</a>.</p>

  <a href="#"><img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."></a>
<div>
  <p>Things cats love:</p>
  <ul>
    <li>cat nip</li>
    <li>laser pointers</li>
    <li>lasagna</li>
  </ul>
  <p>Top 3 things cats hate:</p>
  <ol>
    <li>flea treatment</li>
    <li>thunder</li>
    <li>other cats</li>
  </ol>
  </div>
  <form action="/submit-cat-photo">
  <label><input type="radio" name="indoor-outdoor" checked>Indoor</label>
  <label><input type="radio" name="indoor-outdoor"> outdoor<label><br>
  <label><input type="checkbox" name="personality" checked>loving</label>
  <label><input type="checkbox" name="personality" > lazy </label>
  <label><input type="checkbox" name="personality" >energetic</label><br>

    <input type="text"placeholder> <placeholder="cat photo URL" required>
    <button type="submit">Submit</button>

 </form>
</main>
</body>
</html>

The first thing, I don’t know what I am looking at. Is that in Code Pen or the learning tab of the website? Secondly, I don’t see the HTML code or what the objective is.

Thought: If this is the output that you are getting, I would start by seeing where your / li and / ol are and see if you need to move or add them.

1 Like

@Ombax11
If you have a question about a specific challenge as it relates to your written code for that challenge, just click the Ask for Help button located on the challenge. It will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

1 Like

Yes i know aboout it
What i am to ask is about i have finish my html course then i rewrite it with visual code & try to run with it to browser
But stuck cannot run
Is there something wrong with my try to run it?
Pardon me if my english bad

Course from freecodecamp
Then i rewrite it to visual code & try running it
But can 'nt run

I moved your question to its own topic because you were asking a question related to your own code for a challenge and were not answering the OP of the other thread. It is always best to create your own thread for you specific question(s). Please update the topic title with the title you think best suite your question. Also, it is advisable to use the Ask for Help button on the challenge, so it auto-populates with your current code and the challenge url.

Thank you.

I’ve edited your post for readability. When you enter a 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.

See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

Note: Backticks are not single quotes.

markdown_Forums

1 Like

you have syntax errors
to start:

DOCTYPE must be upper case

you are missing the <html> opening tag

1 Like