Home  >  Article  >  Web Front-end  >  What parts does an html page consist of?

What parts does an html page consist of?

青灯夜游
青灯夜游Original
2021-06-21 14:31:079710browse

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.

What parts does an html page consist of?

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 , style sheet embedding …; relative path definition …, script<script>…</script>

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:

tag defines the footer of a document or section. The

element should contain information about its containing element.

The footer usually contains the document's author, copyright information, terms of use link, contact information, and more.

You can use multiple
elements in a document.

Recommended tutorial: "

html video tutorial"

The above is the detailed content of What parts does an html page consist of?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:Is html xml?Next article:Is html xml?