40 important HTML5 face questions and Answers __html

Source: Internet
Author: User
contentDescribes the relationship between SGML (standard Universal Markup Language) and HTML (Hypertext Markup Language), XML (Extensible Markup Language), and HTML. What is HTML5. Why is it that we don't need a DTD (document type definition HTML5). If I don't put <! DOCTYPE html> label, HTML5 will work. which browsers support HTML5. What is the difference between the HTML5 page structure and HTML4 or more HTML? What is the DataList in HTML5. What are the different new form element types in the HTML5? What is an output element in HTML5. What is SVG (Scalable Vector graphics). We can see a simple example of SVG using HTML5. What is canvas in HTML5. How do we use canvas to draw a simple line. What is the difference between canvas and SVG graphics. How to use SVG in canvas and HTML5 to draw a rectangle. What is the selector in the CSS (cascading style sheets cascading style sheet). How to apply a CSS style using the ID value. What is the use of column layouts in CSS. Can you explain the CSS box model? Can you explain some of the text effects in CSS3? What is web workers. Why we need them. What is the limit of WEB worker threads. How we create a worker thread in JavaScript. How do I abort Web Worker? Why do we need HTML5 services to send events. What is the local storage concept in HTML5. How we add and remove data from local storage. What is the lifecycle of the local storage. What is the difference between local storage and cookies (data stored on a user's local terminal). What is a transaction store. How do we create a transaction store. What is the difference between local storage and transaction storage. What is Websql. is websql a specification of HTML5? How we use Websql. What is the application cache in HTML5. How we implement the application cache in HTML5. How we refresh the browser's application cache. What is the fallback in the application cache. What is the network in the application cache.

Introduced

I am a asp.net mvc developer who recently was asked a lot of questions and new features related to HTML5 when I was looking for a job. So the following 40 important questions will help you review HTML5 related knowledge.

These questions are not an efficient solution to your job, but can be helpful when you want to review related topics quickly.

Happy to find a job.

What is the relationship between SGML (standard Universal Markup Language) and HTML (Hypertext Markup Language), XML (Extensible Markup Language), and HTML.

SGML (Standard Universal Markup Language) is a standard that tells us how to specify document tags. He is a meta language that only describes how document tags should be, and HTML is a markup language that is described in SGML.

So using SGML to create an HTML reference and a DTD that must be followed, you often find the "DOCTYPE" attribute in the header of an HTML page to define the target DTD for resolution

1 <! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01//en" "HTTP://WWW.W3.ORG/TR/HTML4/STRICT.DTD" >

Now parsing SGML is a painful thing to do, so creating XML makes things better. XML uses SGML, for example: You have to use the start and end tags in SGML, but in XML you can have closing tags that are automatically closed.

XHTML is created in XML and is used in HTML4.0. You can refer to the XML DTD shown in the following code fragment

1 <! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">

In short, SGML is the parent of all types, and older HTML leverages sgml,html4.0 to use XHTML derived from XML

What is HTML5.

HTML5 is the latest HTML standard, and his main goal is to provide all content without any additional plug-ins like flash,silverlight, such as animation, video, Rich GUI, etc.

HTML5 is a collaborative output between the World Wide Web Consortium (WWW) and the web Hypertext Technology Working Group (WHATWG)

Why is it that we don't need a DTD (document type definition HTML5).

HTML5 doesn't use SGML or XHTML, he's a brand new thing, so you don't need to reference DTDs, and for HTML5, you just need to place the following document type code to tell the browser that this is a HTML5 document

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.