You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.html
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,7 @@ <h3>Syntax</h3>
67
67
<li>Don’t omit optional closing tags (e.g. <code></li></code> or <code></body></code>).</li>
68
68
</ul>
69
69
</div>
70
-
<divclass="col">
70
+
<divclass="col col-code">
71
71
{% highlight html %}{% include html/syntax.html %}{% endhighlight %}
72
72
</div>
73
73
</div>
@@ -77,7 +77,7 @@ <h3>Syntax</h3>
77
77
<h3>HTML5 doctype</h3>
78
78
<p>Enforce <ahref="https://developer.mozilla.org/en-US/docs/Web/HTML/Quirks_Mode_and_Standards_Mode">standards mode</a> and more consistent rendering in every browser possible with this simple doctype at the beginning of every HTML page.</p>
79
79
</div>
80
-
<divclass="col">
80
+
<divclass="col col-code">
81
81
{% highlight html %}{% include html/doctype.html %}{% endhighlight %}
82
82
</div>
83
83
</div>
@@ -91,7 +91,7 @@ <h3>Language attribute</h3>
91
91
</blockquote>
92
92
<p>Read more about the <code>lang</code> attribute <ahref="http://www.w3.org/html/wg/drafts/html/master/semantics.html#the-html-element">in the spec</a>. Head to Sitepoint for a <ahref="https://www.sitepoint.com/iso-2-letter-language-codes/">list of language codes</a>.</p>
93
93
</div>
94
-
<divclass="col">
94
+
<divclass="col col-code">
95
95
{% highlight html %}{% include html/lang.html %}{% endhighlight %}
<p>Internet Explorer supports the use of a document compatibility <code><meta></code> 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 <strong>edge mode</strong>.</p>
103
103
<p>For more information, <ahref="https://stackoverflow.com/questions/6771258/what-does-meta-http-equiv-x-ua-compatible-content-ie-edge-do">read this awesome Stack Overflow article</a>.</p>
104
104
</div>
105
-
<divclass="col">
105
+
<divclass="col col-code">
106
106
{% highlight html %}{% include html/ie-compatibility-mode.html %}{% endhighlight %}
<p>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).</p>
114
114
</div>
115
-
<divclass="col">
115
+
<divclass="col col-code">
116
116
{% highlight html %}{% include html/encoding.html %}{% endhighlight %}
{% highlight html %}{% include html/style-script.html %}{% endhighlight %}
133
133
</div>
134
134
</div>
@@ -154,7 +154,7 @@ <h3>Attribute order</h3>
154
154
</ul>
155
155
<p>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.</p>
156
156
</div>
157
-
<divclass="col">
157
+
<divclass="col col-code">
158
158
{% highlight html %}{% include html/attribute-order.html %}{% endhighlight %}
159
159
</div>
160
160
</div>
@@ -173,7 +173,7 @@ <h3>Boolean attributes</h3>
173
173
</blockquote>
174
174
<p><strong>In short, don't add a value.</strong></p>
175
175
</div>
176
-
<divclass="col">
176
+
<divclass="col col-code">
177
177
{% highlight html %}{% include html/boolean-attributes.html %}{% endhighlight %}
178
178
</div>
179
179
</div>
@@ -183,7 +183,7 @@ <h3>Boolean attributes</h3>
183
183
<h3>Reducing markup</h3>
184
184
<p>Whenever possible, avoid superfluous parent elements when writing HTML. Many times this requires iteration and refactoring, but produces less HTML. Take the following example:</p>
185
185
</div>
186
-
<divclass="col">
186
+
<divclass="col col-code">
187
187
{% highlight html %}{% include html/reducing-markup.html %}{% endhighlight %}
188
188
</div>
189
189
</div>
@@ -254,7 +254,7 @@ <h3>Don't use <code>@import</code></h3>
254
254
</ul>
255
255
<p>For more information, <ahref="http://www.stevesouders.com/blog/2009/04/09/dont-use-import/">read this article by Steve Souders</a>.</p>
256
256
</div>
257
-
<divclass="col">
257
+
<divclass="col col-code">
258
258
{% highlight html %}{% include css/import.html %}{% endhighlight %}
0 commit comments