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: html.html
+9-10Lines changed: 9 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -90,13 +90,13 @@ <h2>1. doctype</h2>
90
90
<!DOCTYPE html>
91
91
<meta charset="UTF-8">
92
92
</code></pre>
93
-
<p><strong>extra:</strong> this the first tag of html file, dont need a closing tag and not case senstitive.</p>
93
+
<p><strong>extra:</strong> this the first tag of html file, don't need a closing tag and not case sensitive.</p>
94
94
ref: <ahref="http://www.w3.org/QA/Tips/Doctype">don't forget doctype</a>, <ahref="http://www.2ality.com/2012/06/dense-arrays.html">Sparse vs Dense Array</a>
95
95
</div>
96
96
<divid="data_attribute">
97
97
<h2>2. data-*</h2>
98
98
<p><strong>Question:</strong> What is the use of data- attribute?</p>
99
-
<p><strong>Answer:</strong> allow you to store extra information/data in the DOM. u can write valid html with embeded private data. You can easily access data attribute by using javascript and hence a lot of libraries like knockout uses it.</p>
99
+
<p><strong>Answer:</strong> allow you to store extra information/data in the DOM. u can write valid html with embedded private data. You can easily access data attribute by using javascript and hence a lot of libraries like knockout uses it.</p>
<p><strong>Question:</strong> What are optional closing tag? and why would u use it?</p>
173
-
<p><strong>Answer:</strong> p, li, td, tr, th, html, body, etc. you dont have to provide end tag. Whenever browser hits a new tag it automatically ends the previous tag. However, you have to be careful to escape it.</p>
173
+
<p><strong>Answer:</strong> p, li, td, tr, th, html, body, etc. you don't have to provide end tag. Whenever browser hits a new tag it automatically ends the previous tag. However, you have to be careful to escape it.</p>
174
174
<p><strong>reason:</strong> you can save some byte and reduce bytes needs to be downloaded in a html file.</p>
175
175
<pre><code>
176
176
<p>Some text<br/><p>Some more text<br/><ul><br/> <li>A list item<br/> <li>Another list item<br/></ul>
0 commit comments