Closing tag error on unordered lists

Tell us what’s happening:
Describe your issue in detail here.

I’m in
Responsive Web Design / Basic HTML and HTML5 /Create a Bulleted Unordered List

and get this error when I press Run the Tests
// running tests
Your li elements should have closing tags.
// tests completed

I even tried copying the solution and got the same error!

Your code so far

<p>Click here to view more <a href="#">cat photos</a>.</p>

<a href="#"><img src="" alt="A cute orange cat lying on its back."></a>

  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:97.0) Gecko/20100101 Firefox/97.0

Challenge: Create a Bulleted Unordered List

Link to the challenge:

ok so right after “Your code so far” you need to edit your post and add 3 backticks (`) to get it so it shows as a code block. They’re located on the same button as the tilde (~). This way we’ll be able to see your code!


Do I put them straight after the words “Your code so far” or after my code?

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.

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 (’).

1 Like

i copied and pasted your code and it worked for me? it could be a browser issue or sometimes extensions can mess with it. You could try resetting the problem and putting the code in again.

Thank you very much for fixing my post and for explaining the use of the backticks

I had put some comments before the code I showed you. When I removed them then the code worked!

Thank you for responding to my query.

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