HTML basic framework

Basic framework

html的helloworld

Insert picture description here

<!DOCTYPE html> is the document type declaration. The
declaration must be the first line of the HTML document, before the tag

The <html> tag is used to mark the beginning of the HTML document; the </html> tag is used to mark the end of the HTML document; these two tags exist in pairs, and the middle part is the head and subject of the document.

<head></head> tag pair: The tag contains information about the HTML document and can contain some auxiliary tags. Such as <title></title>, <link /><meta />, <style></style>, <script></script>, etc., but the browser will display in the title bar元素的内容外,不会向用户显示head元素内的其他任何内容

<body></body> tag pair: It is the main part of the HTML document. This tag can contain many tags such as <p><h1><br>. The <body> tag appears after the </head> tag. And must be closed before the closing tag</html>

Taken from mooc: link

Guess you like

Origin blog.csdn.net/m0_51641607/article/details/114378305