Website Developer Interview Preparation Guide
Download PDF
Add New Question

Website Developer related Frequently Asked Questions by expert members with professional career as Website Developer. These list of interview questions and answers will help you strengthen your technical skills, prepare for the new job interview and quickly revise your concepts

80 Website Developer Questions and Answers:

1 :: Please explain what is CORS? How does it work?

(CORS) Cross-Origin Resource Sharing is a mechanism that enables many resources (e.g., JavaScript, fonts etc.) on a web page to be requested from another domain outside the domain from which the resource originated. It is a mechanism supported in HTML5 that manages XMLHttpRequest access to a domain different.
Post Your Answer

2 :: Explain me what is the correct way to include JavaScript into your HTML?

The correct way to include JavaScript into your HTML is by using inline event handlers or inline code.
Post Your Answer

3 :: Tell me the new APIs provided by HTML 5 standard?

HTML 5 comes with number of new APIs

☛ Media API
☛ Text track API
☛ Application Cache API
☛ Data transfer API
☛ User Interaction
☛ Command API
☛ Constraint Validation API
☛ History API
Post Your Answer

4 :: Do you know what Is SVG And Why Do You Use It?

SVG is an acronym for Scalable Vector Graphics as recommended by W3C.

☛ Its purpose is to display the vector-based graphics over the Web.
☛ The graphics use an XML format.
☛ SVG graphics are of higher quality and does not lose it even when resized.
☛ All elements and attributes of SVG support animation.
Post Your Answer

5 :: Tell me how Does CSS3 Support The Responsive Web Designing?

CSS3 has come up with a media query feature. It supports RWD (Responsive Web Design) and does help in making a website responsive.
Post Your Answer

6 :: Tell me what Are Child Selectors In CSS?

A child selector looks up for the child of some element. To form a child selector, we need two or more selectors separated by “greater than” symbol.

Let’s take an example. We have a <ul> tag inside a paragraph. Here, <ul> is the child of the paragraph element. So, to apply the CSS styles, we can use the following syntax.

p > ul { font-size:15px; }
Post Your Answer

7 :: Tell me what Is CSS Box Model And What Are Its Components?

It is common in HTML to term all of its elements as Boxes. Similarly, in CSS, Box Model refers to modeling the design and layout of its elements. It has primarily four core components.

☛ Margin – It refers to the top most layer of the box.
☛ Border – The padding and content options work around the Border. Changing the background color can also affect the Border.
☛ Padding – It defines spacing around the box.
☛ Content – It represents the actual content to be shown.
Post Your Answer

8 :: Tell us how Do You Add Comments In CSS?

It is just the same in CSS as we do in JavaScript. Place the comments inside the enclosing /* and */.
Post Your Answer

9 :: Tell me how Do You Change The Style/Class On Any Element From JavaScript?

Following JavaScript will modify the style/class of an HTML element.

document.getElementById(“input”).style.fontSize = “10”;
-or-
document.getElementById(“button”).className = “classname”;
Post Your Answer

10 :: Do you know what Is Scope In JavaScript?

The general meaning of scope is the accessibility of functions and variables in an application. Usually, we use them in two ways i.e. Local and Global.

A) Local Scope.
If we declare a function or variable inside a function, then we can access it only inside that function.

// code here can not use myLocalVar

function myFunction() {
var myLocalVar = "I'm Local";

// code here can use myLocalVar

}
B) Global Scope.
Declaring a variable anywhere on the page would mean that we can access it from any of the functions on that page.

var myGlobalVar = "I'm Global";

// code here can use myGlobalVar

function myFunction() {

// code here can use myGlobalVar

}
Post Your Answer
Add New Question