Skip to content

Commit e6616f7

Browse files
committed
some minor type fixed
1 parent 58f5bfa commit e6616f7

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

html.html

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,13 @@ <h2>1. doctype</h2>
9090
&lt;!DOCTYPE html&gt;
9191
&lt;meta charset=&quot;UTF-8&quot;&gt;
9292
</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>
9494
ref: <a href="http://www.w3.org/QA/Tips/Doctype">don't forget doctype</a>, <a href="http://www.2ality.com/2012/06/dense-arrays.html">Sparse vs Dense Array</a>
9595
</div>
9696
<div id="data_attribute">
9797
<h2>2. data-*</h2>
9898
<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>
100100
<pre><code>
101101
&lt;div id=&quot;myDiv&quot; data-user=&quot;jsDude&quot; data-list-size=&quot;5&quot; data-maxage=&quot;180&quot;&gt;&lt;/div&gt;
102102
</code></pre>
@@ -105,7 +105,7 @@ <h2>2. data-*</h2>
105105
<div id="keygen">
106106
<h2>3. keygen</h2>
107107
<p><strong>Question:</strong> How can u generate public key in html?</p>
108-
<p><strong>Answer:</strong> html has a keygen element that failitate generation of key and submission via a form.</p>
108+
<p><strong>Answer:</strong> html has a keygen element that facilitate generation of key and submission via a form.</p>
109109
<pre><code>
110110
&lt;keygen name=&quot;name&quot; challenge=&quot;challenge string&quot; keytype=&quot;type&quot; keyparams=&quot;pqg-params&quot;&gt;
111111
</code></pre>
@@ -116,7 +116,7 @@ <h2>3. keygen</h2>
116116
<div id="bdo">
117117
<h2>4. bdo</h2>
118118
<p><strong>Question:</strong> How can u change direction of html text?</p>
119-
<p><strong>Answer:</strong> use bdo (bidirectional ovverride) element of html.</p>
119+
<p><strong>Answer:</strong> use bdo (bidirectional override) element of html.</p>
120120
<pre><code>
121121
&lt;!-- Switch text direction --&gt;<br/>&lt;p&gt;&lt;bdo dir=&quot;rtl&quot;&gt;This text will go right to left.&lt;/bdo&gt;&lt;/p&gt;
122122
</code></pre>
@@ -140,10 +140,10 @@ <h2>6. scoped</h2>
140140
ref <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style">MDN: style</a>
141141
</div>
142142
<div id="http_request">
143-
<h2>7. http requst </h2>
143+
<h2>7. http request </h2>
144144
<p><strong>Question:</strong> Does the following trigger http request at the time of page load?</p>
145145
<pre><code>
146-
&lt;img src=&quot;mypic.jpg&quot; style=&quot;visibility:hidden&quot; alt=&quot;My photo&quot;&gt;<br/>
146+
&lt;img src=&quot;mypic.jpg&quot; style=&quot;visibility: hidden&quot; alt=&quot;My photo&quot;&gt;<br/>
147147
</code></pre>
148148
<p><strong>Answer:</strong> yes</p>
149149
<pre><code>
@@ -170,7 +170,7 @@ <h2>8. download order</h2>
170170
<div id="optional_tag">
171171
<h2>9. self closing tag</h2>
172172
<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>
174174
<p><strong>reason:</strong> you can save some byte and reduce bytes needs to be downloaded in a html file.</p>
175175
<pre><code>
176176
&lt;p&gt;Some text<br/>&lt;p&gt;Some more text<br/>&lt;ul&gt;<br/> &lt;li&gt;A list item<br/> &lt;li&gt;Another list item<br/>&lt;/ul&gt;
@@ -212,8 +212,8 @@ <h2>13. multiple languages</h2>
212212
</div>
213213
<div id="standard_quirks">
214214
<h2>14. standard & quirks mode</h2>
215-
<p><strong>Question:</strong> Difference between standard/strict mode and quirks mode?</p>
216-
<p><strong>Answer:</strong> quriks mode in browser allows u to render page for as old browsers. This is for backward compatibility.</p>
215+
<p><strong>Question:</strong> Difference between standard/ strict mode and quirks mode?</p>
216+
<p><strong>Answer:</strong> quirks mode in browser allows u to render page for as old browsers. This is for backward compatibility.</p>
217217
</div>
218218
<div id="semantic_html">
219219
<h2>15. semantic</h2>
@@ -227,7 +227,6 @@ <h2>Need more!</h2>
227227
read: <a href="https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/HTML5?redirectlocale=en-US&redirectslug=HTML%2FHTML5">HTML5</a>
228228
</div>
229229

230-
<!-- div>h2+p+pre>code -->
231230
<hr>
232231

233232
<footer>

0 commit comments

Comments
 (0)