{% highlight html %}{% include html/lang.html %}{% endhighlight %}
@@ -102,7 +102,7 @@
IE compatibility mode
Internet Explorer supports the use of a document compatibility <meta> tag to specify what version of IE the page should be rendered as. Unless circumstances require otherwise, it's most useful to instruct IE to use the latest supported mode with edge mode.
{% highlight html %}{% include html/ie-compatibility-mode.html %}{% endhighlight %}
@@ -112,7 +112,7 @@
IE compatibility mode
Character encoding
Quickly and easily ensure proper rendering of your content by declaring an explicit character encoding. When doing so, you may avoid using character entities in your HTML, provided their encoding matches that of the document (generally UTF-8).
-
+
{% highlight html %}{% include html/encoding.html %}{% endhighlight %}
{% highlight html %}{% include html/style-script.html %}{% endhighlight %}
@@ -154,7 +154,7 @@
Attribute order
Classes make for great reusable components, so they come first. Ids are more specific and should be used sparingly (e.g., for in-page bookmarks), so they come second.
-
+
{% highlight html %}{% include html/attribute-order.html %}{% endhighlight %}
@@ -173,7 +173,7 @@
Boolean attributes
In short, don't add a value.
-
+
{% highlight html %}{% include html/boolean-attributes.html %}{% endhighlight %}
@@ -183,7 +183,7 @@
Boolean attributes
Reducing markup
Whenever possible, avoid superfluous parent elements when writing HTML. Many times this requires iteration and refactoring, but produces less HTML. Take the following example:
-
+
{% highlight html %}{% include html/reducing-markup.html %}{% endhighlight %}