Why Is My Code Not Running On Code pen?

<!DOCTYPE html>
<html lang="en">
<h1>THE SUPERSONIC CONCORDE</h1>
  <h2>Mind blowing fact's about the concorde<h2>
    <ol>Top Speed = 2,179 km/h</ol>
    <ol>Maximum Seating Capacity = 130</ol>
    <ol>
  <p></p>
  
</body>
</html>

If you want your code to show you need to surround it with backticks. You can use the </> button in the text editor to add the backticks around your code

What @ilenia said, but because post has been there a while now, I’ve edited in the backticks:

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 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

Thanks for the help Dan.

1 Like

I tried this exact HTML on codepen and had no issues.
What exactly is your problem?

Also, you using list element wrong. It should be like this:

<!DOCTYPE html>
<html lang="en">
<h1>THE SUPERSONIC CONCORDE</h1>
  <h2>Mind blowing fact's about the concorde<h2>
    <ol>
        <li>Top Speed = 2,179 km/h</li>
        <li>Maximum Seating Capacity = 130</li>
    </ol>
  <p></p>
  
</body>
</html>

ol stands for ordered list, and li stands for list item.
So you first declare actual list start with <ol>, and then use <li>element</li> fir each element.