Interpretation of the structure of HTML

EDITORIAL

<!DOCTYPE html>
<html lang="en">
<head>        
   <meta charset="UTF-8">
   <title>Title</title>
</head>
<body>

</body>
</html>

  1. <body> and </ body> are paired tag, <body> is called open-label, </ body> called closing tag.

  2. Presented separately label (empty element), such as <HR /> ; meaning with / close to empty elements.

Note

HTML comments to: <- -!>

<!DOCTYPE html>

DOCTYPE, is to tell the browser what kind of standard use . Here browsing using html specification.

<html lang='en'>和</html>

This is the total label, all html code should be in writing both internal label . In both external labels to write something not displayed.

<head>和</head>

The head of these two labels for a web page

meta

Descriptive tags to describe some of the information on the site. Such as:

<meta charset = "UTF-8">
<meta name="keywords" content="WZ,BeiHang">
<meta name="description" content="在这学Java">

With keywords and website description, you can generate

<title>和</title>

These two labels for the title of the page.

For example, if the Title rewrite my first page, you have the following effects:

         

<body>和</body>

For the main page of the two tags. Which can be filled out. As written on Hello, World!

 

 

Guess you like

Origin www.cnblogs.com/WZ-BeiHang/p/12313551.html
Recommended