Web Technology Questions

Q:

What is the use of CSS sprites?

Answer

- A web page with large number of images takes a longer time to load. This is because each image separately sends out a http request.


- The concept of CSS sprite helps in reducing this loading time for a web page by combining various small images into one image. This reduces the numbers of http request and hence the loading time.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1993
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 1989
Q:

How do you submit a form using Javascript?

Answer

Use document.forms[0].submit();

(0 refers to the index of the form – if you have more than one form in a page, then the first one has the index 0, second has index 1 and so on).

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1958
Q:

What is difference between HTML and XHTML?

Answer

The differences between HTML and XHTML are:


- HTML is application of Standard Generalized Markup Language(SGML) whereas XML is application of Extensible Markup Language(XML).


- HTML is a static Web Page whereas XHTML is dynamic Web Page.


- HTML allows programmer to perform changes in the tags and use attribute minimization whereas XHTML when user need a new markup tag then user can define it in this.


- HTML is about displaying information whereas XHTML is about describing the information.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

1 1938
Q:

What is the importance of Doctype in HTML?

Answer

Doctype tag is not a HTML tag, it is just an instruction that is passed to the web browser to check for the information that is being provided by the markup language in which the page is written. Doctype is sometimes referred as Document type definition (DTD) that describes some rules that has to be followed while writing the markup language so to make the web browser understand the language and the content correctly. Doctype is very important to be placed in the beginning of the HTML and before the <HTML> tag to allow easy rendering of the pages that are used.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

1 1908
Q:

What is the primary function of the Web browsers?

Answer

- Web browser functions are to provide the resources or information to the user when asked by them. 


- It processes the user inputs in the form of URL like https://www.google.com in the browser and allows the access to that page. 


- URL is used to identify the resources and fetch them from the server and displays it to the client. 


- It allows the user to interact with the web pages and dynamic content like surveys, forms, etc. 


- It also allows the user to navigate through the complete web page and see its source code in the HTML format. 


- It provides security to the data and the resources that are available on the web that is by using the secure methods.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1877
Q:

What is XML Namespace?

Answer

An XSL sheet or a document may have duplicate elements and attributes. Therefore, the XML namespaces define a way to distinguish between duplicate element types and attribute names.


An XML namespace is a collection of element type and attribute names. It is a URI due to which any element type or attribute name in an XML namespace can be uniquely identified. 


It consists of two parts : the name of the XML namespace and the local name.


e.g.: xmlns: h=”https://www.abc.com”


After this, you can write


<h:table>


……..


</h:table>


to associate the table with the declared namespace. 

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1876
Q:

What is the Advantage of AngularJS?

Answer

These are the advantages of AngularJS:



  • AngularJS provides capability to form Single Page Application in a very clean and maintainable method.

  • AngularJS provides data binding capability to HTML therefore giving user a rich and responsive experience.

  • AngularJS code is unit testable.

  • AngularJS uses dependency injection and build use of separation of concerns.

  • AngularJS provides reusable components.

  • AngularJS helps developer to writes less code and gets more functionality.

  • AngularJS, views are pure HTML pages, and controllers written in JavaScript do the business process.

  • AngularJS applications will run on all major browsers and good phones together with android and iOS based mostly phones/tablets.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1876