Home >Web Front-end >Front-end Q&A >What parts does an html page consist of?
Components of the html page: 1. DOCTYPE declaration part, which can tell the web browser which HTML version is used in the page; 2. head header, which mainly includes encoding declaration, title, style sheet embedding, etc.; 3. , The body content part contains all the content of the document; 3. The bottom of the footer defines the footer of the document or section.
The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.
Declaration part: DOCTYPE declaration
The code at the beginning of the web page is DOCTYPE, which is the abbreviation of document type: used to indicate that the XHTML or HTML used is What version. The DTD (such as xhtml1-transitional.dtd) is called the document type definition, which contains the rules of the document. The browser interprets the page identifier based on the defined DTD and displays it. To build a standards-compliant web page, the DOCTYPE declaration is an essential and key component
Position: Generally before the code begins
Overall analysis: All content
All content is divided into three parts
Head:
Content:
Bottom:
Head:
Mainly includes encoding declaration …, title
Content:
## The #body element defines the body of the document. The body element contains all the content of the document (such as text, hyperlinks, images, tables, lists, etc.)Bottom: