Web Design & Development

Interview Questions & Answers

  • What is web designing?

Web design is the process of creating websites. It encompasses several different aspects, including webpage layout, content production, and graphic design. While the terms web design and web development are often used interchangeably, web design is technically a subset of the broader category of web development.

  • What is a CSS file? For what purpose it is used?

CSS is called as “cascading style sheets”. It is mainly used to open and control web pages. It is usually used for controlling web pages which include font sizes, font styles and colour combinations that is necessary for the webpage. CSS files makes changes globally as any change in a CSS file can also lead to an overall change in the website appearance. This means that any change in a certain CSS file can cause automatic changes to the pages that uses that certain CSS file and will display the changes.

  • What is external style sheet? How can we link it?

External stylesheet is a template/document/file which contains style and appearance information which can be used to link the HTML document and a large number of HTML documents can be linked using external style sheets. The file document can be linked using the LINK tag under the HEAD element. Files containing style information should have a suitable extension. For example, style.css. The proper syntax for linking the file using external style sheet is

  • What are the different JavaScript types?

There are six types of JavaScript: Object, null, string, undefined, Boolean and number. Objects include functions, array and ordinary objects. Numbers may include integers and real numbers, and also include special values such as NaN and infinity. Strings include empty strings.

  • What is a prompt box?

A prompt box is a pop up box that allows the user to enter the required inputs. This is done by providing a text box. The prompt box can also have the OK and the cancel button to proceed with the input entered so as to execute the action.

  • What is the basic difference between an alert box and a confirm box?

An alert box is a pop up box that has only one element. That is the OK button. While the confirm box has two buttons the OK and the cancel button.

  • What is the difference between HTML5 and HTML?

HTML5 is the newer version of the basic HTML that includes various other properties such as placeholder, video and audio modifications, canvas, 2d and 3d images, date select function and also an added local SQL database. This also enables the webpage to reduce the use of external plugins such as Flash players or any other libraries.

  • What is ? Why is it necessary to use in HTML5?

The is an element used to indicate what type and version of HTML is been used. is usually initialised under the tag. This also does not have an end element and is not case sensitive. The is more important in older versions of HTML, such as the version 4.0.1 since indicating the helped in the process of document type definition (DTD). This is because HTML 4.0.1 was based on standard generalised markup language (SGML). This is not the same case as for HTML5 since that is not dependent on SGML and hence no data type definition is required. Hence, in HTML5 it is not necessary to indicate at the beginning.

  • What are the new media elements that are included in HTML5? Why is canvas used in HTML?

audio, video, source, track, canvas.

  • What is called as negative infinity in JavaScript?

It is a number in JavaScript which is formed by dividing a negative number by zero. The number will return undefined, if used by negative infinity. Example: number.negative_infinity.

  • Copyright © 2018 Crescent Technologies. All Rights Reserved