Web Technology Questions

Q:

Differentiate different types of Doctypes from one another.

Answer

Doctype helps the web browser to correctly render the web pages. There are different types of Doctype that are available and they are as follows:


=> Strict Doctype: it consists of all the HTML elements and it is also known as DTD (Document type definition) but it doesn't include the presentational and deprecated elements i.e. font, center, etc. Framesets related elements are also not allowed in this. For example:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"


"https://www.w3.org/TR/html4/strict.dtd">


=> Transitional Doctype: it consists of all the HTML elements and attributes. It is also known as DTD (Document type definition). It includes the presentational and deprecated elements i.e. font, center, etc. Framesets related elements are also not allowed in this. For example:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"


"https://www.w3.org/TR/html4/loose.dtd">


=> Frameset Doctype: it consists of all the HTML elements and attributes. It is also known as DTD (Document type definition). It includes the presentational and deprecated elements i.e. font, center, etc. Framesets related elements are also allowed in this. For example:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"


"https://www.w3.org/TR/html4/frameset.dtd">

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1683
Q:

What is decodeURI(), encodeURI() in JavaScript?

Answer

To send the characters that can not be specified in a URL should be converted into their equivalent hex encoding. To perform this task the methods encodeURI() and decodeURI() are used.


For example, the following code snippet performs the encoding of URL:


<script type="text/javascript">


          var uri = https://www.mysite.com/city?=Banglore; // original URI


          var ncodeuri=encodeURI(uri);


          document.write("<br />ncodeuri”);


          var dcodeuri = decodeURI(ncodeuri); 


          document.write(“<br>/>dcodeuri”);


</script>

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1682
Q:

How do you create a new object in JavaScript?

Answer

var obj = new Object(); or var obj = {};

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1679
Q:

What is the advantage of using frames?

Answer

- Frames make it easier to navigate through a site. 


- The links that appear in the frame can appear through out the site.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1678
Q:

What is Web Browser ?

Answer

Web browser is a software application used to locate,retrieve and display content on the World Wide Web, including Web pages, images, videos and other files.


Examples : Microsoft Internet Expiorer , Mozilla Firefox , Google Chrome, Opers , Safari etc...

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1667
Q:

What is XML?

Answer

XML, Extensible Markup Language, is an open, text based markup language that provides structural and semantic information to data. XML is a metalanguage that can be used to create other language. It is used to structure and describe data that can be understood by other applications. Using XML, we can separate the user interface from data.


Features of XML :


- XML is a generalized markup language that means one can define his/her own tag sets.


- A valid XML document contains rules and is self-describing.


- The rules that are found in DTD allow the documents to be validated.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1657
Q:

How does traffic measured in hosting platform?

Answer

- The traffic can be measured using the size of the files that are transferred from one place to another (server-client). 


- It can also be measured by the size of the file that is being requested by the client from the server. 


- The number of visitors arriving on the website also involve in the measurement of the traffic using the web hosting platform. 


- The advertisements of the sites take more bandwidth to allow more number of users to be on the website. 


- More number of users provides higher traffic on the website thus it requires more bandwidth on the web hosting sites.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1654
Q:

What is the Use of SPAN in HTML and give one example?

Answer

The <span> tag is used to group inline-elements in a document.


The <span> tag provides no visual change by itself.


The <span> tag provides a way to add a hook to a part of a text or a part of a document.


 


EX :


<p>My Car Color is <span style="color:blue">blue</span> </p>

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1653