Related content:
- What is HTML?
- HTML file structure
What HTML is:
- HMTL Hypertext Markup Language, an application under the standard Universal Markup Language.
- HTML is dedicated to Web pages, and its "markers" tell the browser how to display the content
- The structure of the HTML file includes the header section (English: Head), and the Body section (English: Body): Where the head section provides information about the Web page, the "main" part provides the specific content of the page.
- The HTML "identifier" can be called a label, which tells the browser how to display the content: for example, <br> is the meaning of a newline.
The structure of the HTML file:
- The first line is the file type declaration:
- The file type declaration doctype is used to describe the HTML standard that the document follows, which tells the browser which HTML or XHTML specification to use for the document
- If the page does not have a DOCTYPE declaration, then the page will follow the browser's own way to resolve the "weird mode and Standard mode difference"
-
<!
DOCTYPE
like HTML>说明文档服从
HTML 5 的严格文件类型描述标准【未来趋势是Html5的,如果需要了解旧版本,自行w3school】
- <! The doctype> declaration must be in the first row in the HTML5 document, which is before the
- The second part is the
-
- The
-
- Where
- <body is the actual content displayed in Settings > Web pages
-
What is 1.html:html, Html file structure