Web Technology Questions

Q:

Differentiate between Canvas and SVG.

Answer

Some important differences between Canvas and SVG:


- Canvas is resolution dependent while SVG is not. 


- Canvas does not provide any support for event handlers while SVG does. 


- Canvas is suitable for graphic-intensive games while SVG is not suitable for gaming.


- Canvas is suitable for small rendering areas while SVG is suitable for large rendering areas like Google maps.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1808
Q:

What are the different objects used in JavaScripts?

Answer

JavaScripts uses a hierarchical structure that applies to the objects in a document. There are some objects that show the relationship of one object to another using the language.

Window object: This is the topmost object in the hierarchy. It represent the content area of browser window that consists of HTML documents. Each frame is also a window that has some actions inside it.


Document object: This object gets loaded in a window and consists of objects of different kind in the model. It consists of the content that will be written in the script.

Form object: Form objects are used for more interaction with the users. It represents the form elements inside <FORM>...</FORM> tag.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1807
Q:

What is the difference between class selector and ID selector?

Answer

- Class selector can be given to an overall block. This is sometimes termed as block element as well, whereas ID selector identifies a unique name and a style for a specific element. 


- ID selector declares the style for only one particular element which can be differentiated from other element, whereas Class selector is being given for the whole complete block.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1807
Q:

What are the different types of hostings that exist?

Answer

There are different types of hosting provided to upload and share their files using the web or Internet. 


- Free web hosting service: It provides limited services and offers it to companies in that it offers advertisements and other services with limitations. 


- Shared web hosting service: where a server shares many websites all placed at one place having the range from few to hundred. 


* The domains are most probably remains shared with a common pool of resources that is based on the server like RAM and CPU.


- Reseller web hosting: This is the web hosting that allows clients to provide web hosting to others. This includes individual domains that are listed using the affiliated with a reseller. 


- Virtual Dedicated Server: This is also known as also known as a Virtual Private Server (VPS). This provided the divided server resources in the virtual servers and the method that doesn’t relate directly to the hardware. 


- Home server: This is a single machine server that can be thought as a personal server that is used to host one or more web sites using the connection.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1805
Q:

What is the use of IP based hosting?

Answer

The web hosting on the server can be accomplished by using the IP based hosting that provides resources and services as follows:


- IP based hosting provides dedicated IPs that consists of virtual hosts and having the different IP address. 


- Web server is configured with different and multiple physical network interfaces using the same physical interface. 


- Web server uses this IP address to connect the client with the server to determine the web site that provides the client a view of it. 


- IP addresses provide the resources that are required in order to use the SSL certificates and other resources rather than shared certificate.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1797
Q:

What are the new features provided in HTML5?

Answer

Some of the new features provided in HTML5 are:


- It provides support for local storage


- New form controls, like calendar, date, time, email, url, search


- <canvas> element is provided to facilitate 2D drawing


- The <video> and <audio> elements are provided for media playback


- New content-specific elements are provided. For e.g. <article>, <header>, <footer>, <nav>, <section>

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1791
Q:

How to determine the state of a checkbox using Javascript?

Answer

var checkedP = window.document.getElementById("myCheckBox").checked;

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1788
Q:

What is the use of Name based hosting?

Answer

- Name based is the virtual hosting that allows the virtual hosts to serve multiple hostnames that runs on single machine and having only one IP address.


- This is used when the web browser is used to request the resource from the server then the server respond using the hostname. 


- Web server uses HTTP protocol to respond to the requested hostname as the part of the request. 


- The server contains all the information of the website and the user that requests for the resources given. 


- Name based web hosting includes the resources and services that need to be given at the time of client’s request.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1783