-
Notifications
You must be signed in to change notification settings - Fork 1
HTML
Adam Norris edited this page Jul 2, 2016
·
21 revisions
The HTML5 doctype should be declared as the first line of the document
<!DOCTYPE html>
HTML5 tags should be used (where appropriate), to reflect the semantic content of the document. See W3 Wiki.
<!-- Example of HTML5 tags -->
<article>
<header>
<h1>What Does WWF Do?</h1>
<p>WWF's mission:</p>
</header>
<p>WWF's mission is to stop the degradation of our planet's natural environment,
and build a future in which humans live in harmony with nature.</p>
</article>
All tags and attributes should be written in lowercase
Quote style should be consistent across the document. Double quotes are preferred. See Google style guide
<!-- Bad -->
<img class="hero-image" src='../img/hero-image'>
<!-- Better -->
<img class="hero-image" src="../img/hero-image">
HTML should be properly indented (including any PHP blocks)
Comments should be used to help developers navigate through the markup