Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

HTML skeleton structure

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

  • Html form

    Table sij

    © 2024 shulou.com SLNews company. All rights reserved.

    12
    Report