Web Developer Interview Questions and Answers

Updated on: August 26, 2018

Web developers are important members of an information technology team. They work behind the scenes to manage the way content appears to an end user on a particular website. They work with programming languages to create applications for Internet users and are also responsible for integrating databases within the company’s web management system archive.

Web developers are also responsible for managing how a website looks aesthetically and debug errors when needed. They need to possess strong HTML, CSS and JavaScript knowledge for them to be able to do justice to their jobs. While applying for a job in this capacity, candidates will come across many interview questions that will test their merit for this position. Let us have a look at what some of these questions might be.

 

Web Developer Interview Questions and Answers

How would you explain the main difference between HTML and XHTML where case sensitivity is concerned?
HTML is not case sensitive while XHTML is opposite to it where all tags and attributes must be in the lowercase.

What is an ID selector?
ID selectors are used to defining a style concerning an object that requires a unique identification. It is identified by using a # sign before a selector name.

How would you use persistent storage on browsers? What options would you use?
For HTML browsers, a good choice would be local storage and persistent storage. For non-HTML ones, cookies are the best bet.

What is W3C?
W3C stands for World Wide Web Consortium which is the international standard for World Wide Web. W3C is trying to standardize the web and to make it accessible to all users. The company was created in 1994.

What is DTD?
DTD stands for Document Type Declaration, and it tells the browser which version of either HTML or XHTML is being used.

How would you detect user agent in CSS?
I would use a media tag.

Tell me two common ways in which you can reduce the load time of a web application that you have written?
It will be a good idea to optimize images to no higher than screen resolution and save it as a compression level which squeezes the size considerably. Another thing that can be done is to eliminate all JavaScript files to reduce the amount of transferable data

Explain what graceful degradation is.
In layman, graceful degradation refers to the property that enables a system to function correctly even in the event of failure of either the system or a component.

Category: IT