亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

HTML basic tutorial file structure

<!DOCTYPE HTML>
<html>
<head>
<title>php.cn</title>
</head>
<body>
這里是存放網(wǎng)頁內(nèi)容的
</body>
</html>

Explanation of HTML file structure:

  • ##<!DOCTYPE HTML>: html5 standard web page declaration, must be placed in HTML The first line of the document, before the <html> tag

  • The meaning of the <html></html> tag: tells the browser what format the code in it should be used in (picture , video) to compile.

  • ##<head></head>The meaning of the tag: tells the browser what character set (GB2312, BIG5, JIS) to use to display the Chinese characters in the web page. Without using the correct character set, web pages will appear garbled. GB2312 (Simplified Chinese), BIG5 (Traditional Chinese), JIS (Japanese), utf-8 (multiple languages)
  • ## <title></title> can only be pure Text and any markup will be displayed intact.
  • <body></body> is the display area for the main content of the web page. 99% of the content on the web page must be placed in <body>. Only when placed in <body> can the result be seen after the final browser translation.
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

Function: Tell the browser how to translate Chinese characters.

http-equiv: Simulates the original file header information of the http protocol. The main purpose is to display it in the format when the server returns it to the client.
  • Content-type: Content type.
  • Content: Detailed content type introduction.
  • Text/html: The web page is in text format, and html is a small format in the text.
  • Charset: Character set, mainly controls how Chinese characters are displayed.
  • Utf-8: Multi-language encoding, any country’s language can be displayed normally.
Continuing Learning
||
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>這是我們的第一個頁面</title> </head> <body> <h1>歡迎加入php.cn</h1> <h2>希望你能夠在這里學(xué)的開心</h2> </body> </html>
submitReset Code