HTML — Best Practices
Some rules to follow:
- Always close tags
- Use lowercase for tags
- Keep code neat and clean
- Use semantic tags
- Add
alt
text for images
<!DOCTYPE html>
<html>
<head><title>Good Practice</title></head>
<body>
<header>
<h1>My Website</h1>
</header>
<main>
<p>This is clean and simple code.</p>
</main>
</body>
</html>