1> Why we can open HTML pages
The computer itself has a configuration file suffix open program default, like:. txt + + Notepad open html=> browser open
All the originator of the file originates from the. txt file, you can run the code with the appropriate program [browser] As long as you have modified the corresponding file suffix (. txt to. html), if you have written the corresponding code in the file
2> A simple HTML example, oh my hello World
1 <!DOCTYPE HTML>//Tell the browser this is HTML5 document is not HTML4 or other documents, H4 differs from this2 <html > //The largest label must have3 <head > //Head tags must have4 <title>Yinana</title>//Label header display title must have5 </head> 6 <body> //Body tag must have 7 <Div>//div box label not required8 This is the main content9 </Div>Ten </body> One </html>
Operation Result:
Ok
Simple structure of "html" "1" html