Skip to content

Commit cbe424a

Browse files
committed
some minor changes
1 parent deb17c1 commit cbe424a

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

html.html

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -107,24 +107,24 @@ <h2>3. keygen</h2>
107107
<pre><code>
108108
&lt;keygen name=&quot;name&quot; challenge=&quot;challenge string&quot; keytype=&quot;type&quot; keyparams=&quot;pqg-params&quot;&gt;
109109
</code></pre>
110-
<p><strong>extra:</strong> keygen has to be used inside a form</p>
110+
<p><strong>extra:</strong> keygen has to be used inside a form.</p>
111111
ref: <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/keygen">MDN: keygen</a>
112112
</div>
113113

114114
<div id="bdo">
115115
<h2>4. bdo</h2>
116-
<p><strong>Question:</strong> how can u change direction of html text?</p>
116+
<p><strong>Question:</strong> How can u change direction of html text?</p>
117117
<p><strong>Answer:</strong> use bdo (bidirectional ovverride) element of html.</p>
118118
<pre><code>
119119
&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;
120120
</code></pre>
121121
<strong>result:</strong>
122122
<p><bdo dir="rtl">This text will go right to left.</bdo></p>
123-
<p><strong>extra:</strong> rtl: right to left. and alternatively you can use, ltr: left to right</p>
123+
<p><strong>extra:</strong> rtl: right to left. and alternatively you can use, ltr: left to right.</p>
124124
</div>
125125
<div id="mark">
126126
<h2>5. mark</h2>
127-
<p><strong>Question:</strong> how can u highlight text in html</p>
127+
<p><strong>Question:</strong> How can u highlight text in html?</p>
128128
<p><strong>Answer:</strong> use mark element.</p>
129129
<pre><code>
130130
&lt;p&gt;Some part of this paragraph is &lt;mark&gt;highlighted&lt;/mark&gt; by using mark element.&lt;/p&gt;
@@ -134,7 +134,7 @@ <h2>5. mark</h2>
134134
<div id="scopped">
135135
<h2>6. scoped</h2>
136136
<p><strong>Question:</strong>Can u apply css rule to a part of html document?</p>
137-
<p><strong>Answer:</strong> yes. by using "scopped" in the style tag</p>
137+
<p><strong>Answer:</strong> yes. by using "scopped" in the style tag.</p>
138138
ref <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style">MDN: style</a>
139139
</div>
140140
<div id="http_request">
@@ -143,7 +143,7 @@ <h2>7. http requst </h2>
143143
<pre><code>
144144
&lt;img src=&quot;mypic.jpg&quot; style=&quot;visibility:hidden&quot; alt=&quot;My photo&quot;&gt;<br/>
145145
</code></pre>
146-
<p><strong>Answer:</strong>yes</p>
146+
<p><strong>Answer:</strong> yes</p>
147147
<pre><code>
148148
&lt;div style=&quot;display: none;&quot;&gt;<br/> &lt;img src=&quot;mypic.jpg&quot; alt=&quot;My photo&quot;&gt;<br/>&lt;/div&gt;
149149
</code></pre>
@@ -156,24 +156,24 @@ <h2>8. download order</h2>
156156
<pre><code>
157157
&lt;head&gt;<br/> &lt;link href=&quot;style1.css&quot; rel=&quot;stylesheet&quot;&gt;<br/> &lt;link href=&quot;main2.css&quot; rel=&quot;stylesheet&quot;&gt;<br/>&lt;/head&gt;
158158
</code></pre>
159-
<p><strong>Answer:</strong>No</p>
159+
<p><strong>Answer:</strong> No</p>
160160
<p><strong>Question:</strong> Does main2.css have to be downloaded and parsed before Paragraph 1 is rendered on the page?</p>
161161
<pre><code>
162162
&lt;head&gt;<br/> &lt;link href=&quot;main1.css&quot; rel=&quot;stylesheet&quot;&gt;<br/>&lt;/head&gt;<br/>&lt;body&gt;<br/> &lt;p&gt;Paragraph 1&lt;/p&gt;<br/> &lt;p&gt;Paragraph 2&lt;/p&gt;<br/> &lt;link href=&quot;main2.css&quot; rel=&quot;stylesheet&quot;&gt;<br/>&lt;/body&gt;
163163
</code></pre>
164-
<p><strong>Answer:</strong>yes</p>
164+
<p><strong>Answer:</strong> yes</p>
165165

166166
ref: <a href="http://davidshariff.com/quiz/">David Shariff: quiz</a>
167167
</div>
168168
<div id="optional_tag">
169169
<h2>9. self closing tag</h2>
170-
<p><strong>Question:</strong>What are optional closing tag? and why would u use it?</p>
171-
<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>
170+
<p><strong>Question:</strong> What are optional closing tag? and why would u use it?</p>
171+
<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>
172172
<p><strong>reason:</strong> you can save some byte and reduce bytes needs to be downloaded in a html file.</p>
173173
<pre><code>
174174
&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;
175175
</code></pre>
176-
<p> the above html will be parsed as the following blocks</p>
176+
<p> the above html will be parsed as the following blocks.</p>
177177
<pre><code>
178178
&lt;p&gt;Some text&lt;/p&gt;<br/>&lt;p&gt;Some more text&lt;/p&gt;<br/>&lt;ul&gt;<br/> &lt;li&gt;A list item&lt;/li&gt;<br/> &lt;li&gt;Another list item&lt;/li&gt;<br/>&lt;/ul&gt;
179179
</code></pre>
@@ -199,24 +199,24 @@ <h2>11. div, section & article</h2>
199199
</div>
200200
<div id="svg_canvas">
201201
<h2>12. svg vs canvas</h2>
202-
<p><strong>Question:</strong>What are the difference between svg and canvas?</p>
202+
<p><strong>Question:</strong> What are the difference between svg and canvas?</p>
203203
<p><strong>Answer:</strong> <a href="http://www.sitepoint.com/how-to-choose-between-canvas-and-svg/">Read this one.</a> (I am tired of copy-pasting)</p>
204204
</div>
205205
<div id="mtuli_lang">
206206
<h2>13. multiple languages</h2>
207-
<p><strong>Question:</strong>How to serve a page content in multiple languages?</p>
207+
<p><strong>Question:</strong> How to serve a page content in multiple languages?</p>
208208
<p><strong>Answer:</strong> CMS could be used to deliver content in different language with same structure and style.</p>
209209
<p>ref: <a href="https://github.com/johnpolacek/Front-end-Developer-Interview-Questions/blob/master/README.md">john polacek</a> </p>
210210
</div>
211211
<div id="standard_quirks">
212212
<h2>14. standar & quirks mode</h2>
213-
<p><strong>Question:</strong> Difference between standard mode and quirks mode</p>
213+
<p><strong>Question:</strong> Difference between standard mode and quirks mode?</p>
214214
<p><strong>Answer:</strong> quriks mode in browser allows u to render page for as old browsers. This is for backward compatibility.</p>
215215
</div>
216216
<div id="semantic_html">
217217
<h2>15. semantic</h2>
218218
<p><strong>Question:</strong> What is semantic HTML?</p>
219-
<p><strong>Answer:</strong>Semantic HTML, or "semantically-correct HTML", is HTML where the tags used to structure content are selected and applied appropriately to the meaning of the content.</p>
219+
<p><strong>Answer:</strong> Semantic HTML, or "semantically-correct HTML", is HTML where the tags used to structure content are selected and applied appropriately to the meaning of the content.</p>
220220
<p>for example, &lt;b&gt;&lt;/b&gt; (for bold), and &lt;i&gt;&lt;/i&gt; (for italic) should never be used, because they&#x2019;re to do with formatting, not with the meaning or structure of the content. Instead, use the replacements &lt;strong&gt;&lt;/strong&gt; and &lt;em&gt;&lt;/em&gt; (meaning emphasis), which by default will turn text bold and italic (but don&#x2019;t have to do so in all browsers), while adding meaning to the structure of the content.</p>
221221
<p>ref: <a href="http://en.wikipedia.org/wiki/Semantic_HTML">Wiki: semantic HTML</a> </p>
222222
</div>

0 commit comments

Comments
 (0)