Tuesday 22 December 2015

List out the new APIs provided by HTML 5 standard?

HTML 5 comes with number of new APIs
 Media API
Text track API
Application Cache API
 Data transfer API
User Interaction
Command API
Constraint Validation API
History API

How XHTML is different from HTML?

XHTML requires that all tags should be in lowercase
XHTML requires that all tags should be closed properly
 XHTML requires that all attributes are enclosed in double quotes
XHTML forbids inline elements from containing block level elements

List out few ways you can reduce page load time?

You can do following things to reduce the page load time
 Reduce image size
 Remove unnecessary widgets
 HTTP compression
 Placing CSS at the top and script reference at the bottom or in external files
Reduce lookups
 Minimize redirects
Caching,

Explain how can you refer to CSS file in the web page?

You can refer to the .CSS file in the webpage by using the tag. It should be kept between tag. For example

In HTML what tag can be used for a multi-line text input control?

For multi-line text input control, you can use the “textarea tag”.

Explain in CSS, how can you make a form element’s background color change when the user is entering text? Does this work in all browsers?

Yes, you can change the default look of form elements by styling their HTML tags: input, select and textarea but it won’t work for all browsers.

Mention what is the correct way to include JavaScript into your HTML?

The correct way to include JavaScript into your HTML is by using inline event handlers or inline code.