By observing we found that all the tags in the HTML basic structure are paired. These paired-up labels have one band/one without/, then these non-tagged tags we call the start tag, these bands/tags, which we call the end tag.
Role:
Used to tell the browser that this is a Web page, which means to tell the browser that this is an HTML document
Note the point:
All other tags must be written in the HTML tag, which is written in the middle of the HTML start tag and end tag.
Role:
Used to add some configuration information to a Web site
For example:
- Specify the title of the page/small picture of the specified site
- Add SEO-related information about the site (specify keywords for the site/description of the specified site)
- Plug in some external css/js files
- Add some browsers to fit related content
Note the point:
In general, content written inside the head tag will not be displayed to the user, which means that the content written in the head tag is generally not visible to us.
Role:
Specifically used to specify the title of the site, and this specified title will also be the default title (Ctrl+d, saved default title) for the user to save the site in the future
Note the point:
Title must be written in the head tag
Purpose: specifically for defining what needs to be displayed to the user in an HTML document (text/image/audio/video)
Note the point:
Although there are times when you may be able to write the contents of the site can be seen in the page, but do not do so, be sure to display the content to be written in the body. (Just like will you and dear xxx exchanged position)
Lesson 11. HTML Basic Organization (master)