The basic structure of html5

1. Basic Structure

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>

<body>
</body>
</html>

(1)  <!doctype html>

doctype in Chinese means '' Document Type ''

Markup language document type, tells the browser what kind of document types to parse HTML documents

(2)  <meta charset="utf-8">

<meta> element is used to specify the type of string code
directly charset attribute specified string encoding
<meta charset = "utf-8 ">
example: "utf-8" is a common form of coding, also known as "nations code"

(3)  <title></title>

<Head> tag of various attributes H5 page configuration information will be described, the page will not render content

The <head> described as identity cards, <tittle> is the name on the ID card, <meat> is the display language

(4)  <body></body>

<Body> contains the contents of the information presented to viewers

 

Guess you like

Origin www.cnblogs.com/wangwenchao/p/11614762.html