Last active
July 14, 2023 20:51
-
-
Save AbraaoAlves/95b33477ee8b37d0eedf41094917dc12 to your computer and use it in GitHub Desktop.
Fixing html errors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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