Skip to content

Commit b91123d

Browse files
committed
updated spelling mistakes
1 parent 97ee708 commit b91123d

File tree

1 file changed

+24
-23
lines changed

1 file changed

+24
-23
lines changed

html.html

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
<div class="container">
5252
<h1>html</h1>
5353
<h2>HTML related interview questions</h2>
54+
<p>For Javascript developer to have some idea about html to impress interviewer..</p>
5455
<p>January 01, 2014</p>
5556
<div class="g-plusone"></div>
5657
</div>
@@ -64,27 +65,27 @@ <h2>HTML related interview questions</h2>
6465

6566
<!-- <h3>If you have hard time to follow this video, you can see the content below. Things you will learn-</h3> -->
6667
<ol>
67-
<li><a href="#doctype">what is the use of html doctype?</a></li>
68+
<li><a href="#doctype">Why do u need doctype?</a></li>
6869
<li><a href="#data_attribute">What is the use of data-* attribute?</a></li>
6970
<li><a href="#keygen">How can you generate public key in html?</a></li>
7071
<li><a href="#bdo">How do you change direction of html text?</a></li>
7172
<li><a href="#mark">How can you highlight text in html?</a></li>
72-
<li><a href="#scopped">can you apply css to a part of html document only?</a></li>
73-
<li><a href="#http_request">Will browser make http request for the following case?</a></li>
73+
<li><a href="#scopped">Can you apply css to a part of html document only?</a></li>
74+
<li><a href="#http_request">Will browser make http request for the following cases?</a></li>
7475
<li><a href="#download_order">Which resource would be downloaded first?</a></li>
7576
<li><a href="#optional_tag">What is optional tag?</a></li>
7677
<li><a href="#div_span">What are the differences between div and span?</a></li>
77-
<li><a href="#div_section_article">How you would differentiate div, section and article?</a></li>
78+
<li><a href="#div_section_article">How would you differentiate div, section and article?</a></li>
7879
<li><a href="#svg_canvas">How to select svg or canvas for your site?</a></li>
79-
<li><a href="#mtuli_lang">How to serve html in multiple language?</a></li>
80+
<li><a href="#mtuli_lang">How to serve html in multiple languages?</a></li>
8081
<li><a href="#standard_quirks">Explain standard and quirks mode.</a></li>
81-
<li><a href="#semantic_html">Array methods in string?</a></li>
82+
<li><a href="#semantic_html">What is semantic tag?</a></li>
8283
</ol>
8384
<div id="doctype">
8485
<h2>1. doctype</h2>
85-
<p><strong>Question:</strong> What is doctype? why do u need it?</p>
86-
<p><strong>Answer:</strong> doctype is a instruction to the browser to inform about the version of html and how browser should render it.</p>
87-
<p>It ensures how element should be displayed on the page by most of the browser. And it also makes browsers life easier. otherwise, browser will guess and will go to <a href="http://en.wikipedia.org/wiki/Quirks_mode">quirks mode</a>. Moreover, doctype is required to <a href="http://validator.w3.org/">validate markup</a>.</p>
86+
<p><strong>Question:</strong> What is doctype? Why do u need it?</p>
87+
<p><strong>Answer:</strong> doctype is an instruction to the browser to inform about the version of html document and how browser should render it.</p>
88+
<p>It ensures how element should be displayed on the page by most of the browser. And it also makes browser's life easier. otherwise, browser will guess and will go to <a href="http://en.wikipedia.org/wiki/Quirks_mode">quirks mode</a>. Moreover, doctype is required to <a href="http://validator.w3.org/">validate markup</a>.</p>
8889
<pre><code>
8990
&lt;!DOCTYPE html&gt;
9091
&lt;meta charset=&quot;UTF-8&quot;&gt;
@@ -94,8 +95,8 @@ <h2>1. doctype</h2>
9495
</div>
9596
<div id="data_attribute">
9697
<h2>2. data-*</h2>
97-
<p><strong>Question:</strong> what is the use of data- attribute?</p>
98-
<p><strong>Answer:</strong> allow you to store extra information/data in the DOM. u can write valid html withe embeded private data. You can easily access data attribute by using javascript and hence a lot of libraries like knockout uses it.</p>
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>
99100
<pre><code>
100101
&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;
101102
</code></pre>
@@ -134,7 +135,7 @@ <h2>5. mark</h2>
134135
</div>
135136
<div id="scopped">
136137
<h2>6. scoped</h2>
137-
<p><strong>Question:</strong>Can u apply css rule to a part of html document?</p>
138+
<p><strong>Question:</strong> Can u apply css rule to a part of html document?</p>
138139
<p><strong>Answer:</strong> yes. by using "scopped" in the style tag.</p>
139140
ref <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style">MDN: style</a>
140141
</div>
@@ -155,12 +156,12 @@ <h2>7. http requst </h2>
155156
<h2>8. download order</h2>
156157
<p><strong>Question:</strong> Does style1.css have to be downloaded and parsed before style2.css can be fetched?</p>
157158
<pre><code>
158-
&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;
159+
&lt;head&gt;<br/> &lt;link href=&quot;style1.css&quot; rel=&quot;stylesheet&quot;&gt;<br/> &lt;link href=&quot;style2.css&quot; rel=&quot;stylesheet&quot;&gt;<br/>&lt;/head&gt;
159160
</code></pre>
160161
<p><strong>Answer:</strong> No</p>
161-
<p><strong>Question:</strong> Does main2.css have to be downloaded and parsed before Paragraph 1 is rendered on the page?</p>
162+
<p><strong>Question:</strong> Does style2.css have to be downloaded and parsed before Paragraph 1 is rendered on the page?</p>
162163
<pre><code>
163-
&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;
164+
&lt;head&gt;<br/> &lt;link href=&quot;style1.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;style2.css&quot; rel=&quot;stylesheet&quot;&gt;<br/>&lt;/body&gt;
164165
</code></pre>
165166
<p><strong>Answer:</strong> yes</p>
166167

@@ -169,7 +170,7 @@ <h2>8. download order</h2>
169170
<div id="optional_tag">
170171
<h2>9. self closing tag</h2>
171172
<p><strong>Question:</strong> What are optional closing tag? and why would u use it?</p>
172-
<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 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>
173174
<p><strong>reason:</strong> you can save some byte and reduce bytes needs to be downloaded in a html file.</p>
174175
<pre><code>
175176
&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;
@@ -183,17 +184,17 @@ <h2>9. self closing tag</h2>
183184
<h1>Old School questions</h1>
184185
<div id="div_span">
185186
<h2>10. span vs div</h2>
186-
<p><strong>Question:</strong> What is the difference between span, div?</p>
187+
<p><strong>Question:</strong> What is the difference between span and div?</p>
187188
<p><strong>Answer:</strong> div is a block element and span is inline element.</p>
188-
<p><strong>Extra:</strong> it is illegal to put block element inside inline element. div can have a p tag and a p tag can have a span. However, span can't have a div or p tag inside.</p>
189+
<p><strong>Extra:</strong> It is illegal to put block element inside inline element. div can have a p tag and a p tag can have a span. However, span can't have a div or p tag inside.</p>
189190
<p>ref: <a href="http://stackoverflow.com/questions/183532/what-is-the-difference-between-html-tags-div-and-span">Stackoverflow: div vs span</a> </p>
190191
</div>
191192
<div id="div_section_article">
192193
<h2>11. div, section & article</h2>
193-
<p><strong>Question:</strong> When should i prefer div over section and vice versa?</p>
194-
<p><strong>Answer:</strong> <br>&lt;section&gt; means that the content inside is grouped (i.e. relates to a single theme), and should appear as an entry in an outline of the page. A section normally has a heading (title) and maybe a footer too. It’s a chunk of related content, like a subsection of a long article, a major part of the page (eg the news section on the homepage), or a page in a webapp’s tabbed interface.</p>
195-
<p>&lt;div&gt;, on the other hand, does not convey any meaning, aside from any found in its class, lang and title attributes.</p>
194+
<p><strong>Question:</strong> When should you use section, div or article?</p>
195+
<p><strong>Answer:</strong> <br>&lt;section&gt;, group of content inside is related to a single theme, and should appear as an entry in an outline of the page. It’s a chunk of related content, like a subsection of a long article, a major part of the page (eg the news section on the homepage), or a page in a webapp’s tabbed interface. A section normally has a heading (title) and maybe a footer too.</p>
196196
<p>&lt;article&gt;, represents a complete, or self-contained, composition in a document, page, application, or site and that is, in principle, independently distributable or reusable, e.g. in syndication. This could be a forum post, a magazine or newspaper article, a blog entry, a user-submitted comment, an interactive widget or gadget, or any other independent item of content.</p>
197+
<p>&lt;div&gt;, on the other hand, does not convey any meaning, aside from any found in its class, lang and title attributes.</p>
197198
<p><strong>Good Summary:</strong><a href="http://oli.jp/2009/html5-structure1/">div, section & article</a></p>
198199
<p><strong>Extra:</strong> Authors are strongly encouraged to view the div element as an element of last resort, for when no other element is suitable. Use of more appropriate elements instead of the div element leads to better accessibility for readers and easier maintainability for authors.</p>
199200
<p>ref: (copied from) <a href="http://dev.w3.org/html5/spec-author-view/the-section-element.html#the-section-element">W3C: section</a>, <a href="http://dev.w3.org/html5/spec-author-view/the-div-element.html#the-div-element">W3C: div</a>, <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/sections.html#the-article-element">W3c: article</a> </p>
@@ -210,8 +211,8 @@ <h2>13. multiple languages</h2>
210211
<p>ref: <a href="https://github.com/johnpolacek/Front-end-Developer-Interview-Questions/blob/master/README.md">john polacek</a> </p>
211212
</div>
212213
<div id="standard_quirks">
213-
<h2>14. standar & quirks mode</h2>
214-
<p><strong>Question:</strong> Difference between standard mode and quirks mode?</p>
214+
<h2>14. standard & quirks mode</h2>
215+
<p><strong>Question:</strong> Difference between standard/strict mode and quirks mode?</p>
215216
<p><strong>Answer:</strong> quriks mode in browser allows u to render page for as old browsers. This is for backward compatibility.</p>
216217
</div>
217218
<div id="semantic_html">

0 commit comments

Comments
 (0)