Tuesday, 22 December 2015

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.

Mention some tips you can use to reduce the load time of a web application that you have written?

To decrease the load time of a web application you have to follow the following tips
 Optimize images to no longer than screen resolution and save it as a compressed file
 Eliminate all JavaScript files to reduce the amount of transferable data
 Combine & Mininify all CSS and JS and call them in footer
 Defer or Asynch JS Files