A complete HTML document must contain 3 parts: document declaration, document header and document body. It is they that constitute the skeleton structure of HTML. The document declaration and document header have been introduced respectively before. This article will introduce in detail the basic elements that constitute the HTML skeleton structure
# The ## element represents the root of the HTML document, and all other elements are descendants of this 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 head of the document is defined by the
head> tag, while the body is defined by the
tag
【xmlns】
xmlnsAttribute is used to assign the XML namespace of the document. The default value is "http://www.w3.org/1999/xhtml", which is required in XHTML and optional in HTML
tag is used to define the head of the document, which is a container for all head elements. ;
Mostly invisible, it describes some basic attributes and information of the document (title and icon can be presented). The sub-elements under the
element mainly include
,
,
, The six elements
,