In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly introduces the HTML document structure of the example analysis, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian with you to understand.
The structure of HTML documents, we can understand it as the grammatical structure of web pages, a coding format. This document structure can make the writing of web pages very standardized. Standard code can increase the readability of the code and look more professional.
HTML documents always start with
< html>Start with label and start with
< /html>It's over. In other words, all the content of the web page is contained in the
< html>Vs.
< /html>Between. The structure of the HTML document you now know is as follows:
.
All HTML files have two main structures: the header head and the body body. Usually, the description information of the document is placed in the header, and the subject information of the document (the information displayed on the browser) is placed in the body section. The first update of the HTML document structure is as follows:
. .
The title is the most important information in the header of an HTML document. Each document should have a title, so that visitors can see the title of the page and know what the main content of the page is. So where is the title displayed on the web page? Take Baidu's home page as an example:
As you can see from the picture above, the title of Baidu's home page is "Baidu, you are Tao"
The document title is placed at the head of the document
< title>Vs.
< /title>Between. Its structure is as follows:
Document title
The main part of the HTML document contains the text, images, hyperlinks and so on displayed in the web page. In the main part of the document, you can also write what you want to show the user, or what the user wants to see. The main part is made up of
< body>Start with the label and start with
< /body>End. Its structure is as follows:
The main content of the document: text, image, audio, video, hyperlink and so on.
Utilization
< !DOCTYPE>The description of the document type helps the browser to correctly display many types of documents in the web page web world. Only when the browser makes clear the type of the document, can the document be displayed more accurately. So we should add every document.
< !DOCTYPE>Carry on the document type description.
< !DOCTYPE>Located in
< html>Before the label.
In HTML4.01, the document type is declared as follows:
In HTML5, the document type declaration is simple:
When programming, you often need to add comments to keep your logic clear and increase the E readability of the code. The way to add comments to the HTML document is:
Browsers automatically ignore the contents of comments when reading HTML documents. That is, the contents of the comments are not displayed on the browser.
Finally, the complete structure of the online HTML document:
Document title. The main content of the document: text, image, audio, video, hyperlink and so on. Thank you for reading this article carefully. I hope the article "sample Analysis of HTML document structure" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.