HTML TutorialLesson 34Free preview
HTML Style Guide
This lesson is part of HTML · All levels
Summary
A neat HTML writing style makes code easier to read and maintain by the developer team. Recommended practices include writing elements in lower case, assigning value attributes with double quotes, and consistently sorting attributes. In addition, the writing of boolean attributes and the replacement of obsolete abbreviations are also arranged to keep the code modern and clean.
Key points
- Write the element name and attribute in lower case
- Wrap up the attribute value with a double quote
- Use boolean attributes like disabled without value
- Indentation and neat commentary make code easy to maintain
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.