Interview Questions HTML5

HTML5


11. How you do play a audio using HTML5?

	

12. What ate the new APIS provided by the HTML5 standard? Give a description of each.
The canvas element: Canvas consists of a drawable region defined in HTML code with height and width attributes. JavaScript code may access the area through a full set of drawing functions similar to other common 2D APIs, thus allowing for dynamically generated graphics. Some anticipated uses of the canvas include building graphs, animations, games, and image composition.
? Timed media playback
? Offline storage database
? Document editing
? Drag-and-drop
? Cross-document messaging
? Browser history management
? MIME type and protocol handler registration

13. Give an example of new elements in HTML5 to support multimedia and graphics?
HTML5 introduced many elements such as , instead of

14. What is the difference between HTML5 application and regulate HTML browser cache?
The new HTML5 specification allows browsers to prefetch some or all of a website assets such as HTML files, images, CSS, JavaScript, and so on, while the client is connected. It is not necessary for the user to have accessed this content previously, for fetching this content. In other words, application cache can prefetch pages that have not been visited at all and are thereby unavailable in the regular browser cache. Prefetching files can speed up the site?s performance, though you are of course using bandwidth to download those files initially.

15. What is the status of the development of the HTL5 standard?
HTML5 is being developed as the next major revision of HTML (HyperText Markup Language), the core markup language of the World Wide Web. The Web Hypertext Application Technology Working Group (WHATWG) started work on the specification in June 2004 under the name Web Applications 1.0.[1] As of March 2010[update], the specification is in the Draft Standard state at the WHATWG, and in Working Draft state at the W3C.

16. What are HTML 5 features ?
1. The <canvas> element for 2D drawing
2. The <video> and <audio> elements for media playback
3. local storage support.
4. Added New elements, like <figure>,<small>, <header>, <nav>,<article>, <footer>, <section>,<mark>
5. New form controls, like placeholder,calendar, date, time, email, url, search,required ,autofocus
6. In HTML5 there is only one <!doctype> declaration: <!DOCTYPE html>

17. What is HTML5 Web Storage?
In HTML5, we can store data locally within the user?s browser.It is possible to store large amounts of data without affecting the website?s performance.
Web Storage is more secure and faster.
there are two types of Web Storages
1.LocalStorage:stores data locally with no limit
2.SessionStorage:stores data for one session

18. Why we use canvas element in HTML5?

	

19. HTML5 <input> Types ?
? search
? tel
? time
? color
? email
? month
? date
? datetime
? datetime-local
? number
? range
? url
? week

20. HTML5 New Form Attributes?
? pattern
? placeholder
? required
? step
? autocomplete
? autofocus
? height and width
? list
? min and max
? multiple
? form
? formaction
? formenctype
? formmethod
? formnovalidate
? formtarget