Random Tip

New Tip

Misconception: Students frequently forget to close tags or other paired constructs when writing HTML and CSS code, this error is called unclosed pairs.

  • For example, consider the following errors below that involve unclosed pairs.
    • <h1> Note
      • In the above HTML code, there is a missing closing tag, </h1>.
    • <img src="foo.png>
      • In the above HTML code there is a missing end quotation mark at the end of the image file name, “.
    • a { color: red;
      • In the above CSS code there is a missing closing bracket, }.
  • Frequently remind students to check for this important syntax error.
    • These are a skill-based errors that students will improve on with exposure and practice.
External Source: 

"Towards a Taxonomy of Errors in HTML and CSS" by Thomas Park, Ankur Saxena, Swathi Jagannath, Susan Wiedenbeck, and Andrea Forte.