


Corresponding attributes and usage of XHTML tags in CSS_HTML/Xhtml_Webpage Production
When I first came into contact with XHTML CSS to design web pages, I had little experience in using tags and was very casual. I often used whatever came to mind, thinking that as long as it can achieve the effect, it would be enough. But with the deepening of study and understanding of search engine optimization knowledge, I found that the use of tags is actually a science. We have been emphasizing semantics in the CSS tutorial article of Script Home - jb51.net, so how to use HTML tags? Where are they generally used?
When I first came into contact with XHTML CSS webpage design, I had little experience in using tags and was very casual. I often used whatever came to mind, thinking that as long as it can achieve the effect, it will be enough. But with the deepening of study and understanding of search engine optimization knowledge, I found that the use of tags is actually a science.
I will not give a detailed introduction to the corresponding attributes and usage of each tag in CSS here. I will focus on the application in web pages. I hope it can be helpful to everyone.
1. DIV
DIV should be familiar to those who build XHTML websites. Many websites and materials also call Web standard website construction DIV CSS website construction. It is not unreasonable to call it this way, because W3C does not recommend that the Table tag be used in the layout of web pages, and DIV as a layout tag naturally assumes the important responsibility of layout.
DIV can also be said to be a large container. In addition to the overall structural layout of the web page, it is recommended to be used to divide areas that appear to be relatively independent in the web page. Just like a newspaper, the function of DIV is a large container for dividing different content. In different areas, appropriate labels are selected according to specific situations.
2. H tag
The H tag is a title tag, often used before a paragraph to indicate the meaning of the paragraph. It can be divided into H1~H6 according to the level of display and meaning to be expressed.
H1 is of the highest importance and is often used to express a description of the function and nature of the entire website, or to indicate the audience for which the website is intended. Other tags are used to display the name of a certain area or a general description of a certain introductory text depending on the level.
Because it represents a general description of the website or a certain paragraph of text, the H tag has a high value compared to search engines. But this does not mean that it can be used casually. For example, some websites use H tags to display keywords in a paragraph of text in order to deliberately pursue rankings for specific keywords. Or simply use the H tag as a container to layout the web page. This completely confuses the role of the H tag and is not recommended.
3. P
P is a paragraph tag, used to distinguish different paragraphs of a set of text. For search engines, according to their crawling order, the text in the first P tag also has high value. Like Baidu, it ignores the text in the Meta tag description (description) and grabs the content in the first P tag (not absolutely).
Some websites use the
tag when segmenting in order to allow search engines to crawl more content and provide users with a better browsing experience. This is not to say that it is impossible. Sometimes, the desired effect cannot be achieved at all. For strictly typed documents,
It is a tag belonging to the expression form and is not allowed to be used.
Although most websites use transitional document types, I do not recommend using them for text segmentation.
4. UL and LI tags
This is an unordered list, the UL tag is a declaration of the list, and LI is a list item. Due to the relative independence of its projects, it is often used in navigation, news or article lists, etc. UL can also be used as a container to distinguish different lists.
Some websites can pursue "Web standards" and convert Tables to UL and LI. This makes web pages difficult to read and maintain. Wrong understanding goes against the concepts conveyed to us by Web standards.
5. Table
I won’t introduce too much about the usage of Table here. I just want to say that the Web standard does not mean that Table cannot be used in the future, but that it is not recommended to use Table for layout and only for displaying data. time to use. Therefore, there is no contradiction between web pages that comply with the Web and the use of Table tags.
6. Tags prepared for search engines
(1) Title: the title of the web page and a description of the website. Subtags are also valuable to search engines and often include target keywords.
(2) Meta keywords: the main keywords in the web page. It was originally prepared to facilitate search engines to classify websites, but later because many websites often used this tag to cheat in order to make keyword rankings more favorable, so now this tag has almost no meaning for search engines.
(3) Meta Description: Description of the web page. Like Keywords, it was originally intended to facilitate search engine classification. It is also because many websites use this tag to cheat, so it is no longer that important to search engines. Currently, among the mainstream search engines, only Google still crawls the content, but it hardly determines keywords based on the content.
In fact, for search engines, the most important thing is the quality of the content. Similarly, we build websites to promote ourselves to visitors. Please don’t forget the fundamentals because of the quickness. After all, users care about whether the information is what they need, not the ranking of your website.
The above are commonly used tags that are easier to confuse for beginners. Welcome to pay attention to the updated CSS tutorial articles of jb51.net. If you encounter new problems in the future, we will continue to do so. Expanded recently.

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



How to send web pages to the desktop as a shortcut in Edge browser? Many of our users want to display frequently used web pages on the desktop as shortcuts for the convenience of directly opening access pages, but they don’t know how to do it. In response to this problem, the editor of this issue will share the solution with the majority of users. , let’s take a look at the content shared in today’s software tutorial. The shortcut method of sending web pages to the desktop in Edge browser: 1. Open the software and click the "..." button on the page. 2. Select "Install this site as an application" in "Application" from the drop-down menu option. 3. Finally, click it in the pop-up window

CrystalDiskMark is a small HDD benchmark tool for hard drives that quickly measures sequential and random read/write speeds. Next, let the editor introduce CrystalDiskMark to you and how to use crystaldiskmark~ 1. Introduction to CrystalDiskMark CrystalDiskMark is a widely used disk performance testing tool used to evaluate the read and write speed and performance of mechanical hard drives and solid-state drives (SSD). Random I/O performance. It is a free Windows application and provides a user-friendly interface and various test modes to evaluate different aspects of hard drive performance and is widely used in hardware reviews

foobar2000 is a software that can listen to music resources at any time. It brings you all kinds of music with lossless sound quality. The enhanced version of the music player allows you to get a more comprehensive and comfortable music experience. Its design concept is to play the advanced audio on the computer The device is transplanted to mobile phones to provide a more convenient and efficient music playback experience. The interface design is simple, clear and easy to use. It adopts a minimalist design style without too many decorations and cumbersome operations to get started quickly. It also supports a variety of skins and Theme, personalize settings according to your own preferences, and create an exclusive music player that supports the playback of multiple audio formats. It also supports the audio gain function to adjust the volume according to your own hearing conditions to avoid hearing damage caused by excessive volume. Next, let me help you

Some netizens found that when they opened the browser web page, the pictures on the web page could not be loaded for a long time. What happened? I checked that the network is normal, so where is the problem? The editor below will introduce to you six solutions to the problem that web page images cannot be loaded. Web page images cannot be loaded: 1. Internet speed problem The web page cannot display images. It may be because the computer's Internet speed is relatively slow and there are more softwares opened on the computer. And the images we access are relatively large, which may be due to loading timeout. As a result, the picture cannot be displayed. You can turn off the software that consumes more network speed. You can go to the task manager to check. 2. Too many visitors. If the webpage cannot display pictures, it may be because the webpages we visited were visited at the same time.

NetEase Mailbox, as an email address widely used by Chinese netizens, has always won the trust of users with its stable and efficient services. NetEase Mailbox Master is an email software specially created for mobile phone users. It greatly simplifies the process of sending and receiving emails and makes our email processing more convenient. So how to use NetEase Mailbox Master, and what specific functions it has. Below, the editor of this site will give you a detailed introduction, hoping to help you! First, you can search and download the NetEase Mailbox Master app in the mobile app store. Search for "NetEase Mailbox Master" in App Store or Baidu Mobile Assistant, and then follow the prompts to install it. After the download and installation is completed, we open the NetEase email account and log in. The login interface is as shown below

Cloud storage has become an indispensable part of our daily life and work nowadays. As one of the leading cloud storage services in China, Baidu Netdisk has won the favor of a large number of users with its powerful storage functions, efficient transmission speed and convenient operation experience. And whether you want to back up important files, share information, watch videos online, or listen to music, Baidu Cloud Disk can meet your needs. However, many users may not understand the specific use method of Baidu Netdisk app, so this tutorial will introduce in detail how to use Baidu Netdisk app. Users who are still confused can follow this article to learn more. ! How to use Baidu Cloud Network Disk: 1. Installation First, when downloading and installing Baidu Cloud software, please select the custom installation option.

MetaMask (also called Little Fox Wallet in Chinese) is a free and well-received encryption wallet software. Currently, BTCC supports binding to the MetaMask wallet. After binding, you can use the MetaMask wallet to quickly log in, store value, buy coins, etc., and you can also get 20 USDT trial bonus for the first time binding. In the BTCCMetaMask wallet tutorial, we will introduce in detail how to register and use MetaMask, and how to bind and use the Little Fox wallet in BTCC. What is MetaMask wallet? With over 30 million users, MetaMask Little Fox Wallet is one of the most popular cryptocurrency wallets today. It is free to use and can be installed on the network as an extension

Apple rolled out the iOS 17.4 update on Tuesday, bringing a slew of new features and fixes to iPhones. The update includes new emojis, and EU users will also be able to download them from other app stores. In addition, the update also strengthens the control of iPhone security and introduces more "Stolen Device Protection" setting options to provide users with more choices and protection. "iOS17.3 introduces the "Stolen Device Protection" function for the first time, adding extra security to users' sensitive information. When the user is away from home and other familiar places, this function requires the user to enter biometric information for the first time, and after one hour You must enter information again to access and change certain data, such as changing your Apple ID password or turning off stolen device protection.
