Skip to content

Instantly share code, notes, and snippets.

@AbraaoAlves
Last active July 14, 2023 20:51
Show Gist options
  • Save AbraaoAlves/95b33477ee8b37d0eedf41094917dc12 to your computer and use it in GitHub Desktop.
Save AbraaoAlves/95b33477ee8b37d0eedf41094917dc12 to your computer and use it in GitHub Desktop.
Fixing html errors
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<title>HTML debugging examples</title>
</head>
<body>
<h1>HTML debugging examples</h1>
<p>What causes errors in HTML?
<ul>
<li>Unclosed elements: If an element is
<strong>not closed properly, then its effect can spread to areas you didn't intend</strong>
</li>
<li>Badly nested elements: Nesting elements properly is also very
important for code behaving correctly.
<strong>strong <em>strong emphasised?</strong> what is this?
</em>
<li>Unclosed attributes: Another common source of HTML problems.
Let's look at an example:
<a href="https://www.mozilla.org/>link to Mozilla homepage</a>
</ul>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment