Placement and annotation of 1>javascript
1. Output tool
A.alert ();
B.document.write ();
C.prompt ("," "");
<!DOCTYPE HTML Public "-//W3C//DTD XHTML 1.0 transitional//en" "http://www.w3.org/TR/xhtml1/DTD/ Xhtml1-transitional.dtd "><HTMLxmlns= "http://www.w3.org/1999/xhtml"><Head><Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8" /><title>Output function test</title></Head><Body><Script> <!--The Popup dialog displays -Alert (""); <!--page Display -document.write (""); <!--Popup Input dialog box, a hint parameter, an input parameter - varvalue=Prompt ("Please enter your name","") <!--display the input parameters -alert (value);</Script></Body></HTML>
2.JavaScript how to place in HTML pages
A.<script></script> placed in the middle of Type, and the other one is language .
div Add Style: Write Class,<div class= "One" ></div>, and then write in
<style>. One{width:100px;Height:100px;background:Red;font-size:12px;Color:Blue; }</style>
JavaScript Learning notes-basic knowledge