Home >Web Front-end >HTML Tutorial >What parts does the html web page structure consist of?
We all know that when developing a web page, we must first lay out the structure and components of the web page, so what parts do we need to pay attention to? Let me summarize it for you below.
First of all, the HTML page is static from beginning to end, with no program execution. It is pure HTML language. It is sent directly to the browser and presented to the viewer without being processed by the server.
Relatively speaking, web pages ending with other suffixes are dynamic web pages. Dynamic pages are processed by the server through their own program translation, database operations, etc., and then the browser sends the data processed by the server to the program. Users, and web page content data can change when background data changes.
What is the basic language structure of html?
Let’s take a look at the html structure first:
<html> <head> <title>放置文章标题</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> //这里是网页编码现在是gb2312 <meta name="keywords" content="关键字" /> <meta name="description" content="本页描述或关键字描述" /> </head> <body> 这里就是正文内容 </body> </html>
The complete HTML includes the html DOCTYPE statement, title title, head, web page encoding statement, etc.
Initially use the complete html source code :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>标题部分</title> <meta name="keywords" content="关键字" /> <meta name="description" content="本页描述或关键字描述" /> </head> <body> 内容 </body> </html>
The latest complete HTML structure-HTML source code (recommended):
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>网页标题</title> <meta name="keywords" content="关键字" /> <meta name="description" content="此网页描述" /> </head> <body> 网页正文内容 </body> </html>
Whether it is html or a dynamic page with other suffixes, its html language structure is That's right, it just ends with a different suffix when naming the web page files.
1. Whether it is a dynamic or static page, it starts with "100db36a723c770d327fc0aef2ce13b1" and ends with "73a6ac4ed44ffec12cee46588e518a5e" at the end of the web page.
2. "100db36a723c770d327fc0aef2ce13b1" is followed by the "93f0f5c25f18dab9d176bd4f6de5d30e" page header. The content in 93f0f5c25f18dab9d176bd4f6de5d30e9c3bca370b5104690d9ef395f2c5f8d1 cannot be displayed in the browser. This is the area for servers, browsers, external JS links, a link CSS styles, etc., and the page title is placed in "b2386ffb911b14667cb8f0f91ea547a76e916e0f7d1e588d4f442bf645aedb2f" inside.
3. Then "< ;meta name="keywords" content="Keywords" /> f94de4aa3d5c741975fb2c01287018ec "The content in these two tags is for search engines It shows that the keywords of this page and the main content of this page can be used for SEO.
4. Next is the text "6c04bd5ca3fcae76e30b72ad730ca86d36cc49f0c466276486e50c850b7e4956" which is often referred to as the body area. The content placed here can be presented to the user through the browser, and its content can be a table layout. The format content can also be the content of DIV layout, or it can be text directly. This is also the most important area, the content presentation area of the web page.
5. Finally, it ends with "73a6ac4ed44ffec12cee46588e518a5e", which means the web page is closed.
The above is a complete and simplest basic structure of html language. Through the above, more styles and content can be added to enrich the web page.
Note: Web pages generally require each tag to be closed according to the xhtml standard, such as: starting with 100db36a723c770d327fc0aef2ce13b1 and closing with 73a6ac4ed44ffec12cee46588e518a5e; if it is not closed, such as 256592a625c5b77c9e3384793c0dd036If there is no03d0e15baf5b7c9d224e5281b47a68fe, there will be6e9efad98cf9902158970645217e1226 to complete the closure.
The above is the simplest html language structure in layman's terms. If you need to see more and richer html language structures, you can open a website page, then click "View" on the browser--then click "View source code" can see the HTML language structure of the webpage, so that the HTML language structure and content of the webpage can be analyzed based on the source code.
There are so many components of an HTML web page. For more exciting content, please pay attention to other related articles on the php Chinese website!
Related recommendations:
How to use the 1aa9e5d373740b65a0cc8f0a02150c53 tag of html
##How to write the html document type declaration
How to make the web page black and white
The above is the detailed content of What parts does the html web page structure consist of?. For more information, please follow other related articles on the PHP Chinese website!