HTML and XML Syntax for HTML5 — What's the Difference?
Main differences between HTML and XML syntax:
| HTML | XML | |
|---|---|---|
| 1. | End tags can be "implied" Closing elements that have implied end tags 
  | End tags always required (even for "empty" elements) 
  | 
| 2. | Start tags can be "implied"  | Start tags always required  | 
| 3. | Element and attribute names are not case-sensitive 
 | Element and attribute names are case-sensitive 
 | 
| 4. | Attribute values do not need to be in quotes if the values contain
                      alpha-numeric characters only 
 | Attribute values must always be in quotes 
 | 
Best Practices for Starting Out
- Use start and end tags, even if optional
- Lower case element and attribute names
- Use quotes around attribute values
- Preference note: David prefers the "XML" syntax, but that's a preference, not a mandate; also it is a preference not shared by everyone.