- Difference between SVG and Canvas? Explanation
- Difference between Flash and Canvas?
- In depth study of @media queries
- Explain cascading in CSS - CSS specifies a priority scheme to determine which style rules apply if more than one rule matches against a particular element. In this so-called cascade, priorities or weights are calculated and assigned to rules, so that the results are predictable.
- Comparision of browsers like Chrome, Firefox, Internet explorer, Safari etc. Wikipedia link
- Chrome: Layout rendering engine - Webkit. Jscript engine - V8
- Firefox: Layout rendering engine - Gecko. Jscript engine - Spider monkey
- Internet explorer: Layout rendering engine - Trident. Jscript engine - Chakra
- Safari - Layour rendering engine - Webkit. Jscript engine - JavascriptCore i.e Nitro
- Acid3 test is a web test page from the Web Standards Project that checks a web browser's compliance with elements of various web standards, particularly the Document Object Model (DOM) and JavaScript. Wikidedia link for acid3 test
- Browser speed test - Sunspider speed test, speed battle
- Ecmascript - ECMAScript is the scripting language standardized by Ecma International in the ECMA-262 specification and ISO/IEC 16262. The language is widely used for client-side scripting on the web, in the form of several well-known dialects such as JavaScript, JScript and ActionScript.
- Browser hacks
- CSS Specificity, what is cascading of css?
- Media queries
- Css counters used to display counters for list and sections. more links
- Comparision between Adaptive and Responsive css?
- Handle
white-spaceproperty in css. Default parameterwhite-space:normal. Detailed explanation: css tricks link, mdn link - Difference between
<code>and<pre>tags. unlike other tags<pre>tag preserves line breaks and spaces.
-
What is the default property of position? A: static
-
What is the difference between static and relative position element? Static VS Relative position
-
What is first-class function? A: first-class function
-
How is JSON different from XML?
-
Box model
Box model: css tricks link
Box-sizing mdn link
Box-sizing -
What is the width of the child
divelement which is wrapped inside anotherdivelement having width as 300px. Inner div has margin of 10px, border 5px and padding of 10px.
-
Explain call and apply. And how are they different?
-
What is prototype?
-
Three disadvantages of jQuery?
-
AJAX
-
Javascript Data Types
- Primitive (Primary) Data types : String, Number, Boolean
- Composite Data types : Array, Object
- Special Data types : null, undefined
-
What is event bubbling?
-
How these properties are different
e.preventDefault,e.stopPropagationandreturn false?return falsefrom within jQuery event handler is same as calling bothe.stopPropagationande.preventDefault. This behaviour differ in normal (non-jQuery) event handlers, in which notablyreturn falsedoesn't stop the event from bubbling up.e.preventDefaultprevents from default browser event to be occured.e.stopPropagationprevent event from bubbling up.
-
stopImmediatePropagation- Keeps the rest of the handlers from being executed and prevents the event from bubbling up the DOM tree. -
Name few http-headers?
-
How can you restrict javascript to set / get cookies?
if(!document.__defineGetter__){ Object.defineProperty(document, 'cookie', { get: function(){ return ''; }, set: function(){ return true; } }); } else { document.__defineGetter__("cookie", function(){ return '';} ); document.__defineSetter__("cookie", function(){} ); }
-
Any Event which doesn't bubble up the DOM tree? A: Error Event.
- Crash course how DOM event works Capture and bubble phase
- What is
createDocumentFragment? And how is it useful? Answer: It is quite performant to use createDocumentFragment while inserting elements to DOM. Details follow the link. Implementation example1
- What is the difference between
<code>and<pre>? Answer:<pre>tag preserves spaces and line breaks. - Which one should be used among these
<strong>,<b>,<i>and<em>and why? Answer:<strong>and<em>are more semantically correct with respect to<i>and<em>.
- Describe everything that happens from the time you hit enter, to the time your browser receives a response.
Including link to previous discussion!