To write a good HTML document, there are rules that you have to follow.
These are some of them:-
Tags:
- you cannot have an end tag without a start tag
- every start tag must start with a less than symbole and end with a greater than symbole
- every end tag must start with a less than symbole followed by a / and end with a greater than symbole
- Element name: use lower case for the best of your code
- Indenting: indent your work properly
- Keep your work simple
- Nesting: nest your tags properly. Clik the link for the nesting rules
- Attribute: click the link for the attribute rules
- Validating: validate your work using a validator