Home  >  Article  >  Web Front-end  >  Detailed explanation of HTML skeleton structure with graphics and text

Detailed explanation of HTML skeleton structure with graphics and text

高洛峰
高洛峰Original
2017-03-15 12:54:452409browse

Previous words

 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

HTML

  # 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

Detailed explanation of HTML skeleton structure with graphics and text

xmlns】

 xmlns

Attribute 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

 

The HEAD

syntax

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 , <code>, </code><base> <code>, The six elements </code><link> <code>, </code><style><code> and <script><code> ##Define the title of the document, which is the only required element in the head section  If the <p><head><code> tag is omitted in the document, most browsers will automatically create one<head>Element<p><code>  More information about the document head goes here<code> BODY<p>  <p>< ;body> represents the main content of the HTML document. Only one <h3><body> element is allowed in any HTML document<p><code>[Default style]<pre class="brush:php;toolbar:false">chrome/firefox/safari/IE8+ margin:8px; IE7- margin:15px 10px;<code> Structure<p>   In the sublime<p> editor, enter !, and then hold down the Tab key to generate a basic HTML structure. The structure is as follows<h3> <pre class="brush:php;toolbar:false"><!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Document</style> In practice, the header structure of a document often needs to carry some common functions, so the HTML structure is relatively complex. The structure is as follows

nbsp;html>


    
    Document
    
    
    
    
    



The above is the detailed content of Detailed explanation of HTML skeleton structure with graphics and text. 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