HTML basic tutorial file structure
php.cn 这里是存放网页内容的
Explanation of HTML file structure:
- ##: html5 standard web page declaration, must be placed in HTML The first line of the document, before the tag
- The meaning of the tag: tells the browser what format the code in it should be used in (picture , video) to compile. ## 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)
- ##
can only be pure Text and any markup will be displayed intact. - is the display area for the main content of the web page. 99% of the content on the web page must be placed in . Only when placed in can the result be seen after the final browser translation.
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.