Reducing markup

Whenever possible, avoid unnecessary parent elements when writing HTML. Many times this requires iteration and refactoring, but produces less HTML. Take the following example:

Bad

<span class="avatar">
  <img src="...">
</span>

Good

<img class="avatar" src="...">