Get the App
SLTechnology News&Howtos  ›  Network Security  › 

HTML skeleton structure

Shulou Source: shulou.com Published: 2022-06-01 04:40:49 09月12日 Update

A complete HTML document must contain three parts: the document declaration, the document header, and the document body. It is they that make up the skeleton structure of HTML. The document declaration and the document header have been introduced earlier, and this article will describe in detail the basic elements that make up the skeleton structure of HTML.

HTML

The element represents the root of the HTML document, and all other elements are descendants of that element. The and tags define the start and end points of the document, and between them are the head and body of the document. The header of the document is defined by the tag, while the body is defined by the tag

[xmlns]

The xmlns attribute is used to assign the XML namespace of the document. The default value is "http://www.w3.org/1999/xhtml", which is necessary in XHTML and optional in HTML

HEAD

The tag is used to define the header of the document, which is the container for all header elements. ; mostly invisible, describing some of the basic properties and information of the document (title and icon can be rendered) The child elements under the element mainly include, and these six elements.

Defines the title of the document, which is the only required element in the head section

If tags are ignored in the document, most browsers automatically create an element

More information about the document header has moved here

BODY

Represents the main content of a HTML document. Only one element is allowed in any HTML document.

[default style]

Chrome/firefox/safari/IE8+ margin:8px;IE7- margin:15px 10px; structure

In the sublime editor, enter! and then press and hold the Tab key to generate a basic HTML structure, which is as follows

Document

In practice, the header structure of a document often needs to carry some commonly used functions, so the HTML structure is more complex, as follows

Document

Tags: Documents elements structures headers tags bodies skeletons information most attributes complexity necessity parts between representatives content functions descendants fundamentals reality Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL NVidia vpn Shulou Information Apple