HTML and CSS interview topics which comes 2

Source: Internet
Author: User

Media: DOCTYPE role? How does strict mode differ from promiscuous mode?

Soy sauce: The DOCTYPE tag is a document type description of a standard generic markup language, and his goal is to tell the standard generic markup Language parser what type of document the definition of a DTD should be used to parse the document.

Difference: Strict mode: Affirming the correct DTD

Promiscuous mode: Do not declare DTDs or add XML declarations in DOCTYPE

Media: HTML5 Why only write <! DOCTYPE html>

Soy sauce: HTML5 is not based on SGML and therefore does not require a reference to the DTD.

Media: What are the new features of HTML5, and which elements are removed?

Soy sauce: New features: (for example, if you can, the interviewer mainly tests whether you h5 understand, in fact, he is not very clear, unless your interviewer is dedicated to do H5)

Content elements: Header,article,section,footer

Form controls: Calendar.date.time,email

Control elements: WebSocket, etc.

Removed elements: Presentation layer elements: Big Center,font,s,tt,u

Elements with poor performance: Frame.frameset.noframes

Media: How do I handle browser compatibility issues with HTML5 new tags?

Soy sauce: IE6/7/8 supports tags generated through the document method, which allows browsers to support H5 new features

Or use the H5 framework

Media: How do I differentiate between HTML and h5?

Soy sauce: look at doctype.

Media: Talking about the understanding of HTML semantics

Soy sauce: 1. For the bare-Ben more Beautiful

2. Better user Experience 3. Good for SEO 4. Convenient for other equipment resolution 5. Facilitate team development and maintenance.

Cond..................................................... will be published in the HTML and CSS interview topic which comes 3

HTML and CSS interview topics which comes 2

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.