Web Technology Questions

Q:

What is the difference between an alert box and a confirmation box?

Answer

An alert box displays only one button which is the OK button whereas the Confirm box displays two buttons namely OK and cancel.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 2337
Q:

What is Contextual Selector ?

Answer

Contextual selector addresses specific occurrence of an element.
It is a string of individual selectors separated by white space (search pattern), where only the last element in the pattern is addressed providing it matches the specified contex.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

2 2327
Q:

What is JavaScript?

Answer

JavaScript is a scripting language most often used for client-side web development.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 2295
Q:

Differentiate between localStorage and sessionStorage objects.

Answer

- localStorage object stores the data without an expiry date while sessionStorage object stores the data only for one session. 


- With localStorage object, data will not be deleted when the browser window is closed while the data is deleted when the browser window closes with sessionStorage objects.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 2281
Q:

How to read and write a file using javascript?

Answer

I/O operations like reading or writing a file is not possible with client-side javascript. However , this can be done by coding a Java applet that reads files for the script. 

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 2240
Q:

What are Child Selectors ?

Answer

A child selector is used when you want to match an element that is the child of another specific element.
The parent and child selectors are separated by spaces.
The following selector locates an unordered list element within a paragraph element and makes a text within that element bold.


p > ul {font-weight: bold;}

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

4 2221
Q:

What are the different types of components involved in URI?

Answer

URI is known as Uniform Resource Identifier as it identifies the resources requested by clients and fetches them from the server. 


The components that are used in URI are as follows:


- http: is the first thing that is used in a URL and it is used to tell what kind of resource that needs to be retrieved over the server.


 This includes the server details and it is itself a protocol known as Hypertext Transfer Protocol (HTTP) that is used to fetch the information. 


- Web browsers sometimes use the secure protocol that is represented using HTTPs used in case of secure transaction over the internet. 


- FTP: is also a protocol that is known as File Transfer Protocol that allows the transfer from a file from local computer to server

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 2214
Q:

Explain about services in Angular.js ?

Answer

In angular.js services are the singleton objects or functions that are used for carrying out specific tasks.
It holds some business logic and these function can be called as controllers, directive, filters and so on.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

4 2206