Compare hotel prices and find the best deal - HotelsCombined.com

Saturday, April 18, 2015

HTML5 is the future of web development.

HTML5 is the future of web development.
20. What is the difference between the application model of HTML and HTML5?
    • Trick question, there is no difference. HTML5 is a continuum of HTML and just a souped up version of the original HTML. There has been no major paradigm shift.
21. Ok, what’s the real difference between HTML and HTML5?
    • There are many. From a broader perspective, HTML was a simple language for laying out text and images on a webpage, whereas HTML5 can be viewed as an application development platform that does what HTML does that and more, including better support for audio, video, and interactive graphics. It has a number of new elements, supports offline data storage for applications, and has more robust exchange protocols. Thus, proprietary plug-in technologies like Adobe Flash, Microsoft Silverlight, Apache Pivot, and Sun JavaFX are no longer needed, because browsers can now process these elements without additional requirements.
22. What is the new DOCTYPE?
    • Instead of typing out a ridiculously long DOCTYPE statement to tell the browser how to render your webpage, this long line of code has been truncated to .
23. What are some new HTML5 markup elements?
    • There are several
      ,
       and .
24. What elements have disappeared?
    • As mentioned above,  and  have been eliminated. Other elements that are no longer supported include: , ,  and.
25. What are the new media-related elements in HTML5?
    • HTML5 has strong support for media. There are now special  and . There are additional A/V support tags as well:  is a container for 3rd party applications.  is for adding text tracks to media.  is useful for A/V media from multiple sources.
26. What are the new image elements in HTML5?
    • Canvas and WebGL.  is a new element that acts as a container for graphical elements like images and graphics. Coupled with JavaScript, it supports 2D graphics. WebGL stands for Web Graphics Language, a free cross-platform API that is used for generating 3D graphics in web browsers.
27. What is the difference between SVG and ?
    •  is an element that manipulates two-dimensional (2D) pixels while Scalable Vector Graphics works in 2D and three-dimensional (3D) vectors. Essentially,  is to SVG as Photoshop is to Illustrator.
28. What are some new input attributes in HTML5?
    • There are many new form elements including: datalist, datetime, output, keygen, date, month, week, time, number, range, email, and url.
29. What are data- attributes good for?
    • The HTML5 data- attribute is a new addition that assigns custom data to an element. It was built to store sensitive or private data that is exclusive to a page or application, for which there are no other matching attributes or elements.
30. What is the difference between HTML5 interaction in Sencha and Twitter/Bootstrap?
    • Sencha and Twitter/Bootstrap are both HTML development frameworks that integrate HTML5, CSS3, and JavaScript. The major difference is that in Sencha, the three languages are all comingled together in code, whereas in Bootstrap, HTML and CSS and decoupled.
31. What purpose do Work Workers serve and what are some of their benefits?
    • Web Workers are background scripts that do not interfere with the user interface or user interactions on a webpage, allowing HTML to render uninterrupted while JavaScript works in the background.
32. Describe the difference between cookies, sessionStorage, and localStorage.
    • Cookies are small text files that websites place in a browser for tracking or login purposes. Meanwhile, localStorage and sessionStorage are new objects, both of which are storage specifications but vary in scope and duration. Of the two, localStorage is permanent and website-specific whereas sessionStorage only lasts as long as the duration of the longest open tab.
33. What are some of the major new API’s that come standard with HTML5?
    • To name a few: Media API, Text Track API, Application Cache API, User Interaction, Data Transfer API, Command API, Constraint Validation API, and the History API.
34. What is the difference in caching between HTML5 and the old HTML?
    • An important feature of HTML5 is the Application Cache. It creates an offline version of a web application. and stores website files such as HTML files, CSS, images, and JavaScript, locally. It is a feature that speeds up site performance.
35. Did you remember your portfolio?