In the previous article "How to create a simple single-page layout with HTML (code sharing)", I introduced how to use HTML to create a simple single-page layout. The following article will take you through the basic structure of html web pages. Friends in need can refer to it. I hope it will be helpful to you.
HTML is a language used to describe web pages
We are going to make an html page, and everything in the html Things are called tags Basically the structure is the same as this person. First there is a head called
, <title>...</title>
refers to a benefit of a prompt in the editor, you can write the name of this file.
Code example
<!DOCTYPE html> <html> <head> <title>练习册</title> </head> <body> how are you? </body> </html>
1、 Declaration
HTML document
2、< The ;html> element is the root element of the HTML page.
Starts from the <html>
tag and ends with the </html>
tag. The root element The function is to tell the browser.
3. The <head> element contains the elements of the document.
The <head>
element and <body> # The ## element is different. Its content will not be displayed in the browser. Its function is to save some metadata of the page.
4. The
5.
Element code example
<title>练习册</title>
##Recommended learning:
Html video tutorialThe above is the detailed content of It is worth understanding the basic structure of html web pages while studying (summary). For more information, please follow other related articles on the PHP Chinese website!