Best Practices
Page structure
- Organize page into sections and subsections.
- Use proper headings.
- Close tags.
- Wrap attribute values with double quotes.
Naming conventions
- Use lowercase letters for directory names and filenames. Connect words with underscore, not blank space.
- Use
.html or .htm as file extension for HTML, .css for style sheets. - Use lowercase letters for elements and attributes.
Lines
- Add blank lines for logical grouping.
- Use two-space indentation, don't use tab.
Colors and images
- Don't use too many colors in a single page.
- Make sure text contrasts well with background.
- Choose correct image format and size.
- Provide alternative text for images.