- 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"