1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="UTF-8"> 5 <title></title> 6 <style type="text/css"> 7 div{ 8 width: 200px; 9 height: 200px; 10 background: #000; 11 } 12 is </ style > 13 is </ head > 14 < body > 15 <-! Embedded -> 16 < Script > . 17 // single line comment 18 / * 19 * multiline comment 20 is * * / 21 is Alert ( ' Hello World JS! ' ); // pop 22 is </ Script > 23 is 24 25 <! - outer chain -> 26 <-!Note: If the script file tag introduced externally js, 27 then this tag program which can not write js -> 28 < script the src = "../ the test.js" > </ script > 29 30 31 is 32 <-! between the line -> 33 is < div the onclick = "Alert ( 'YEA ... inline style into effect')" > </ div > 34 is < a the href = "JavaScript: Alert ( 'I a');" > point I </ A > 35 < A the href = "JavaScript: void (0)"the onclick = "Alert ( 'I is A');" > some more I ah</a> 36 </body> 37 </html>