Topic: HTML Basics

Common syntax problems – HTML


Here’s a list of some common mistakes you might make while writing HTML code.

  • A missing opening or closing tag
  • Missing angle brackets on your opening or closing tag
  • Missing a slash on your closing tags
  • Misspelling a tag
  • Adding unnecessary spaces inside your tags


Below are examples of what each mistake might look like.

A missing opening tag:

This is a paragraph.</p>

A missing closing tag:

<p>This is a paragraph.

A missing slash on the closing tag:

<p>This is a paragraph.<p>

A missing angle bracket on one or more tags:

p>This is a paragraph.</p

If your web page is not rendering in the browser correctly, try going through this list of syntax problems and see if you made any of these mistakes.


No references available.