Web Technology Questions

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 2342
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 2336
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 2336
Q:

HTML 5 provides drag and drop facility. How do you make an image draggable?

Answer

To make an image draggable, the draggable attribute is set to true:


<img draggable="true">

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 2323
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 2309
Q:

What are different ways to integrate a CSS into a Web page?

Answer

There are three ways to integrate CSS into a Web page 


1. Inline: HTML elements may have CSS applied to them via the STYLE attribute.


2. Embedded: By placing the code in a STYLE element within the HEAD element.


3. Linked/ Imported: Place the CSS in an external file and link it via a link element.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 2289
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 2283
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 2278