Web Technology Questions

Q:

What is the use of Media Types in CSS?

Answer

Media types in CSS define the media like audio and video to be used in your HTML document to represent the properties in a better way. The font property can be used for media types as it can be used for print media or screen media. Document requires a defined media to represent the screen that can be read on the paper. It is used as:@media 


<html>


<head>


<style>


@media screen


{


p.test {font-family:verdana,sans-serif;font-size:14px;}


}


@media print


{


p.test {font-family:times,serif;font-size:10px;}


}


</style>


</head>


<body>


----------Your code here----------


</body>


</html>

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1687
Q:

What is the procedure to configure the web browser to accept or reject cookies?

Answer

- The web browser visits a website using the HTTP and then it keeps the track of the identity of the user visiting the web page.


- The cookies of HTTP get stored with the personal information of the user and it doesn’t accept the information. 


- Users accept the cookies as by rejecting all the cookies will load the web page in longer time and it will not be desired by the users. 


- Even if the cookie is being rejected a session cookie is being kept for use as it is the provision given to the web browser to use it. 


- The cookies gets stored temporary basis depending on the user of accepting or rejecting it and it basically saves the session so that the duration of the page load can be reduced.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1681
Q:

What are the advantages of the external over inline style methods?

Answer

- External Style Sheets are useful as it keeps the style and content separately and doesn’t allow it to mix with each other. It can control the styles for multiple documents, whereas inline style mixes the content with the style and make the code messier.


- External style sheet allows the creation of various classes in a structured way, whereas inline style sheet can’t create or control class elements.


- External style sheet can use selector and grouping methods to apply styles, whereas inline styles can’t use selector and grouping methods.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1678
Q:

What is website?

Answer

Basically website is an information provider, It provides information globally using internet protocols.


 

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1677
Q:

What are the ways to change the cookie setting using the web browser?

Answer

The cookie settings include the enabling and disabling of the services that are used with the web browsers.


The following steps are taken to set the cookies:


- The TOOLS menu is being opened on web browser and the privacy tab is selected from where the privacy of individual user can be managed. 


- Using the ADVANCED tab the options to set the cookies will be visible and it will allow the overriding of cookie. 


- The cookies can be accepted by checking the first party cookies or the third party cookies. Out of these choices the first party cookies provide more security. 


- Check the checkbox for "Always allow session cookies" so that the session cookies can be maintained. 

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1670
Q:

What is the use of providing web hosting services?

Answer

- Web hosting services provide internet hosting and its services that provide organization to build the websites. 


- The web hosting services also allow the individuals to access the websites through the World Wide Web. 


- Web hosting provides the space to put their content and allow the clients to provide the Internet connectivity. 


- It provides the data center that allows the use of higher space and connectivity properties for the Internet users. 


- It provides tools to allow the website to run on the servers and easily accessible from the outside world using the browser.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1668
Q:

How to Accessing Elements using javascript?

Answer

The elements of JavaScript are accessed by their names. By default the browser is accessed by the element ‘windows’ and the page by ‘document’. The corresponding element has user defined names for forms and its elements. For example


var pwd = windows.document.frmLogin.password.value;


assigns the value of the password field of the form fromLogin in the current document, where password is the name of the element and frmLogin is the name of the form. Like wise any form element is accessed.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1665
Q:

What are the rules in CSS ruleset?

Answer

CSS consists of two types of CSS rules, first is for ruleset which identifies the style and the selector. It combines the style and the selector. Ruleset is a combination of CSS rules, for example: h1{text-color: 15pt;}, where this is the CSS rule. Ruleset is selector + declaration for example: h1 + {text-color: 15pt;}

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1663