HTML Basics Review
1:ie is a browser, the general browser is only used in the box of IE, the knowledge of IE did a outsourcing.
2: Write HTML when writing according to the XML standard class. There is an end to the beginning.
3:html attribute single and double quotes can, or do not write, HTML and XML are the same, are used <!__> to make comments.
4:<p></p> Create a paragraph; <br/> return; some tags in HTML can not be closed, BR is a, this is different from XML, the general situation is all closed. <br/>
5:html do not take "" as a space, to express the space must be used to represent spaces. Because in HTML there will often be indented form, if such a page layout will be very messy.
6: Segmentation with <p> tags, why <> to use < "less" and &dt "greater than", because in HTML <> has a different meaning.
7:<pre> can output the middle field in its written format </pre >
8: This image is linked in a click, and the picture is not inserted.
9:table form
*:<thead></thead> indicates that the table header,<tr> represents the row,<td> represents the column.
10: Form
*:<form> is a form label, and if you want to submit the data to the database, you need to put the form elements such as <input>,<textarea>,<select> into the form.
*:<form action= ' > Where the Action property ends up on that page.
*:<input> is the primary form element, the optional value of type is: <SUBMIT>: Submit button;<button> Normal button;<checkbox> check box;<file> file selection box ;
*<select> tags are used to represent a ComboBox or a ListBox, or a ListBox if its property has a size greater than 1.
*: If the attribute size is greater than 1, it is represented as a ComboBox, otherwise it is a ListBox
11:CSS cascading style sheets are used to beautify Web pages.
* Inline type: For a certain label, to beautify;
* Page embedding: To beautify a class of labels; set <style> in
* External references: <link type= "text/css" rel= ' styleheet ' href= ' css1.css ' >
[javascript]< weak type of language >
1: Format, written in
<script>
Alert (' output content ');
</script>
2: External references
<script src= ' common.js ' type= "Text/javascript" > </script>
3:js is the interpretation of the line language, not the compiled type, and sometimes some errors will also be executed, it has nothing to do with Java, the basic form and C # is the same.
There is no type in 4:js, which declares a variable with var. The following code is correct in JS and is wrong in vs.
var i=10;
i= "ABC";
alert (i); this will output ABC, without error.
5: Determine its variable initialization
var x;
if (!x) {alert (' not X ');} Indicates that the variable is initialized or the variable is not empty or the variable is not 0.
6: Declaration of function does not need to declare return value type, parameter type. Not all functions have a return value.
function Add (I1,I2) {
return i1+i2;
}
7: In JS also has the event one said, this only includes some hyperlinks above.
<a href= "Javascript:alert (' click Me ')" ></a>
<input src= "A.js" onclick= "Clert (' click Me ')" type= "JavaScript" >
8: anonymous function
var f1=function (A, b) {
return a+b;
}
Alert (F1 (12.10)); Output 22.
9:js Object-Oriented Foundation
There is no class syntax in **js, it is simulated with the function closure, in JS String,date class, are called objects ""
Example
The function person (name,age) {//can be considered as a constructor, while Name,age is understood as a property.
This. Name=name;
This. Age=age;
This. Sayhallo=function () {
Alert ("Hello, I Am" +this. name+, "I'm +this this year." Age+ "years old");
}
}
var p1=new person ("mans", 20);
P1. SayHello (); You must declare the class name
10:array Array
The array in **:js is a dynamic array, without limiting the size and length is unlimited.
var names=new Array ();
names[0]= "Tom";
Names[1]= "Son";
For (var i=0;i<names.length;i++) {
Alert (Names[i]);
}
"HTML" Basics 01