Topic: HTML Basics

Common syntax problems – HTML

Summary

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

Details

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.

References

No references available.