HTML coding guidelines
======================
We use `Django templates `_ to author HTML.
Linting HTML
~~~~~~~~~~~~
We use `jinjalint `_ to lint templates. If you have installed Wagtail's testing dependencies (``pip install -e .[testing]``), you can check your code by running ``make lint``.
Principles
~~~~~~~~~~
* Write `valid HTML `_. We target the HTML5 doctype.
* Attach JavaScript behavior with ``data-`` attributes, rather than classes or IDs.
* For comments, use Django templates syntax instead of HTML.