Frequently encountered problems in WEB front-end development Interview "continuous Update"

Source: Internet
Author: User

    1. The difference between XHTML and HTML:
    • XHTML must end properly.
    • XHTML must be closed
    • XHTML tag names must be in lowercase letters
    • XHTML must have a root element
    • In XHTML, you need to assign a value to all properties
    • XHTML ' < ', ' > ',& and so on coded representations
    • In XHTML, do not write in comments--
    • The picture must have descriptive text, and the ALT attribute must have
    • Replace the name attribute with the id attribute

The difference between 2.HTML5 and HTML4

    • HTML5 simplifies the syntax, the HTML 4 Chinese document format is defined as: <! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "Http://www.w3.org/TR/html4/loose.dtd", in HTML5, just write <!doctype html>;html 4 needs to write <script type= "Text/javascript" src= "File.js" ></script>, while in HTML5, just " Script src= "Code.js" ></script>
    • HTML5 replaces Flash with <canvas>
    • HTML5 added
    • Removed <b>, <font>, <frame>, <center>, <big> tags

3.JSON Introduction

    • Json:javascript Object Notation (JavaScript object Notation). JSON is a lightweight data interchange format that makes it easy to read, and makes the machine easy to parse;
    • JSON structure: "Name/value" pairs
    • JSON data can be transmitted using AJAX
    • Data is separated by commas
    • Curly braces represent objects, and brackets represent arrays

code example:

<script type= "Text/javascript" >

var jsonobject= {

"Name": "Bill Gates",

"Street": "Fifth Avenue New York 666",

"Age": 56,

"Phone": "555 1234567"};

document.getElementById ("Jname"). Innerhtml=jsonobject.name

document.getElementById ("Jage"). Innerhtml=jsonobject.age

document.getElementById ("Jstreet"). Innerhtml=jsonobject.street

document.getElementById ("Jphone"). Innerhtml=jsonobject.phone

</script>

Frequently encountered problems in WEB front-end development Interview "continuous Update"

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.