Friday, 30 January 2015

HTML and HTML5 Interview Questions and Answers

6. Which elements of HTML 4.01 are no more a part of HTML5?
Following elements of HTML 4.01 are no more a part of HTML 5:

7. What is SVG?
•SVG is the abbreviation for Scalable Vector Graphics and is recommended by W3C.
•It is used to define vector-based graphics for the Web
•The graphics are defined in XML format
•An important quality of SVG graphics is that their quality is maintained even when they are zoomed or resized.
•All the element and attributes of SVG files can be animated

8. What are the advantages of SVG over other image format like JPEG or GIF?
Following are the main advantages of using SVG over other image formats:
- It is possible to scale the SVG images.
- They can be created and edited with any text editor
- The print quality of these image is high at any resolution.
- It is possible to zoom the SVG images without any degradation in the quality.
- SVG images can be searched, indexed, scripted, and compressed

9. Differentiate between Canvas and SVG.
The table below shows some important differences between Canvas and SVG:
- Canvas is resolution dependent while SVG is not.
- Canvas does not provide any support for event handlers while SVG does.
- Canvas is suitable for graphic-intensive games while SVG is not suitable for gaming.
- Canvas is suitable for small rendering areas while SVG is suitable for large rendering areas like Google maps.

10. What is a Canvas? What is the default border size of a canvas?
Canvas is a rectangular area on a HTML page, specified with the tag <canvas>.
By default, a canvas has no border. To get a border on the canvas, a style attribute is required to be used.
More Questions & Answers :-
Part1  Part2  Part3  Part4  Part5  Part6  Part7  Part8  Part9  Part10

No comments:

Post a Comment