search
HomeWeb Front-endHTML TutorialDetailed introduction to the basic structure and tags of HTML

HTML basic composition structure and tags

In fact, the composition structure can be briefly understood with a picture as follows

Detailed introduction to the basic structure and tags of HTML

The current structure of the general website is not very clear and simple

Let’s talk about the header first

Detailed introduction to the basic structure and tags of HTML

Is this clearer?The navigation bar is a quick entry to guide users to view the content of the website. For example, if you go to the supermarket to buy soy sauce, there will be a hanging hanging above the supermarket's head. Classification area, for example, daily necessities, clothing, kitchenware, etc.

Then you will find where the items you want to buy are classified through the classification. Then you only have to find what you want to buy. of soy sauce will do. Is this easier to understand?

Then let’s continue to look at the content part. As the name suggests, it is a manifestation of the author or poster showing text combined with pictures and other content. The details are as follows:

This is how the content is displayed. If you want to make an analogy: everyone knows that Starbucks is a place to drink coffee. This is its hearer. But the specific coffee you drink depends on the content. Your choice Go to the front desk to see the types and prices of coffee

My personal understanding of the difference between hearer and content is that header is an overview directory. Although content can also be implemented, more content is positioned to a specific attributeAnd address

Finally, let’s talk about footer, also called footer

Detailed introduction to the basic structure and tags of HTML

This is the contact information and supervision of the websites listed above, etc. , for example, it is the same as a car license, that is, it needs the supervision of the vehicle management office and your contact information.

Having introduced this, do you have a general impression of the structure of the web page?

Next let’s talk about the tags of the html web page

A very simple way to view the web page tags is to right-click the mouse. Click on a blank space on the web page to view the source code

Detailed introduction to the basic structure and tags of HTML

## Can you see a lot of code composed of angle brackets? This is the tag > When there is a slash, it is called the closing of the label. It can also be understood as

Let’s take a look at the corresponding relationship. The general situation of title is like this The correspondence is as follows: Of course, there are other ways to write title. This is not considered for the time being.

Detailed introduction to the basic structure and tags of HTML

Let’s take a look at the content Some of the relationships correspond to the following:

Detailed introduction to the basic structure and tags of HTML

Of course, only a brief introduction will be given here, and the details will be understood later

We are looking at the tagThe internal and external relationship is the so-called nesting

##

 

 

      

  •   

    p>

     

 

##

## Tags are layered one after another It is the nesting of tags, so the outermost p is the chairman, h2 is the general manager and the one at the same level as him, ul is also the general manager, li and p are the department heads, such a hierarchical relationship

For example, you are the chairman of company A and the chairman of company B knows each other. At this time, the copy you want requires someone from one of his departments to submit it to you to see about cooperation. , then B will have to

when he returns to the company and notify the matter like this p>h2>ul>li or p Then the employees will know that the boss wants copywriting Just send the copy directly. Our crawler BeautifulSoup also follows this logic to grab the desired content

## , which is to find the content through the tag level.

#This time I will briefly introduce it and will continue to update it in the future.​

The above is the detailed content of Detailed introduction to the basic structure and tags of HTML. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
HTML: The Structure, CSS: The Style, JavaScript: The BehaviorHTML: The Structure, CSS: The Style, JavaScript: The BehaviorApr 18, 2025 am 12:09 AM

The roles of HTML, CSS and JavaScript in web development are: 1. HTML defines the web page structure, 2. CSS controls the web page style, and 3. JavaScript adds dynamic behavior. Together, they build the framework, aesthetics and interactivity of modern websites.

The Future of HTML: Evolution and Trends in Web DesignThe Future of HTML: Evolution and Trends in Web DesignApr 17, 2025 am 12:12 AM

The future of HTML is full of infinite possibilities. 1) New features and standards will include more semantic tags and the popularity of WebComponents. 2) The web design trend will continue to develop towards responsive and accessible design. 3) Performance optimization will improve the user experience through responsive image loading and lazy loading technologies.

HTML vs. CSS vs. JavaScript: A Comparative OverviewHTML vs. CSS vs. JavaScript: A Comparative OverviewApr 16, 2025 am 12:04 AM

The roles of HTML, CSS and JavaScript in web development are: HTML is responsible for content structure, CSS is responsible for style, and JavaScript is responsible for dynamic behavior. 1. HTML defines the web page structure and content through tags to ensure semantics. 2. CSS controls the web page style through selectors and attributes to make it beautiful and easy to read. 3. JavaScript controls web page behavior through scripts to achieve dynamic and interactive functions.

HTML: Is It a Programming Language or Something Else?HTML: Is It a Programming Language or Something Else?Apr 15, 2025 am 12:13 AM

HTMLisnotaprogramminglanguage;itisamarkuplanguage.1)HTMLstructuresandformatswebcontentusingtags.2)ItworkswithCSSforstylingandJavaScriptforinteractivity,enhancingwebdevelopment.

HTML: Building the Structure of Web PagesHTML: Building the Structure of Web PagesApr 14, 2025 am 12:14 AM

HTML is the cornerstone of building web page structure. 1. HTML defines the content structure and semantics, and uses, etc. tags. 2. Provide semantic markers, such as, etc., to improve SEO effect. 3. To realize user interaction through tags, pay attention to form verification. 4. Use advanced elements such as, combined with JavaScript to achieve dynamic effects. 5. Common errors include unclosed labels and unquoted attribute values, and verification tools are required. 6. Optimization strategies include reducing HTTP requests, compressing HTML, using semantic tags, etc.

From Text to Websites: The Power of HTMLFrom Text to Websites: The Power of HTMLApr 13, 2025 am 12:07 AM

HTML is a language used to build web pages, defining web page structure and content through tags and attributes. 1) HTML organizes document structure through tags, such as,. 2) The browser parses HTML to build the DOM and renders the web page. 3) New features of HTML5, such as, enhance multimedia functions. 4) Common errors include unclosed labels and unquoted attribute values. 5) Optimization suggestions include using semantic tags and reducing file size.

Understanding HTML, CSS, and JavaScript: A Beginner's GuideUnderstanding HTML, CSS, and JavaScript: A Beginner's GuideApr 12, 2025 am 12:02 AM

WebdevelopmentreliesonHTML,CSS,andJavaScript:1)HTMLstructurescontent,2)CSSstylesit,and3)JavaScriptaddsinteractivity,formingthebasisofmodernwebexperiences.

The Role of HTML: Structuring Web ContentThe Role of HTML: Structuring Web ContentApr 11, 2025 am 12:12 AM

The role of HTML is to define the structure and content of a web page through tags and attributes. 1. HTML organizes content through tags such as , making it easy to read and understand. 2. Use semantic tags such as, etc. to enhance accessibility and SEO. 3. Optimizing HTML code can improve web page loading speed and user experience.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
Will R.E.P.O. Have Crossplay?
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.