Skip to content

Commit 5cd603f

Browse files
committed
added float related question
1 parent ce25d64 commit 5cd603f

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

browser.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ <h2>15. semantic</h2>
224224
<div>
225225
<h2>References</h2>
226226
<ul>
227-
<li><a href=""></a></li>
227+
<li><a href="http://www.nczonline.net/blog/2010/01/05/interviewing-the-front-end-engineer/">Nczonline: has some good point</a></li>
228228
<li><a href=""></a></li>
229229
<li><a href=""></a></li>
230230
<li><a href=""></a></li>

css.html

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -80,18 +80,16 @@ <h2>css related interview questions</h2>
8080
<li><a href="#standard_quirks">Explain standard and quirks mode.</a></li>
8181
<li><a href="#semantic_html">Array methods in string?</a></li>
8282
</ol> -->
83-
<!-- <div id="doctype">
84-
<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>
88-
<pre><code>
89-
&lt;!DOCTYPE html&gt;
90-
&lt;meta charset=&quot;UTF-8&quot;&gt;
91-
</code></pre>
92-
<p><strong>extra:</strong> this the first tag of html file, dont need a closing tag and not case senstitive.</p>
93-
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>
94-
</div> -->
83+
<div id="doctype">
84+
<h2>1. float</h2>
85+
<p><strong>Question:</strong> How float works?</p>
86+
<p><strong>Answer:</strong> float is to push element on a side of a page with text wrap around it. you can create entire page or litter area by using float. if size of a floated element changes, text around it will reflow to accomodate the changes. You can have float left, right, none or inherit.</p>
87+
<p> if you set, 'float: left;' for an image, it will move to the left until the margin, padding or border of another block-level element is reached. The normal flow will wrap around on the right side.</p>
88+
89+
<p>If interviewer wants to ask one question about css, that would be most likely about float</a>.</p>
90+
<p><strong>extra:</strong> read the positioning constraints in <a href="http://www.w3.org/TR/CSS1/#floating-elements">W3.org: floating elements</a>.</p>
91+
ref: <a href="http://css-tricks.com/all-about-floats/">css-tricks: float</a>, <a href="http://alistapart.com/article/css-floats-101">float 101</a>
92+
</div>
9593
<!-- <div id="data_attribute">
9694
<h2>2. data-*</h2>
9795
<p><strong>Question:</strong> what is the use of data- attribute?</p>

0 commit comments

Comments
 (0)