Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to choose the appropriate Doctype to solve the problem of CSS failure

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

In this article, the editor introduces in detail "how to choose the right Doctype to solve the CSS failure problem". The content is detailed, the steps are clear, and the details are handled properly. I hope that this article "how to choose the right Doctype to solve the CSS failure problem" can help you solve your doubts.

If the DOCTYPE tag is not applied or added to the HTML, the whole HTML CSS will become invalid.

If your CSS is rough and your links have not slipped, why does the CSS pattern not work? You may be worried about this matter, hehe, do not despair, I was also overdone by this matter in my early years. At this point, you need to check whether there is the following sentence at the top of your web page?

Some friends will generally say that it is useless for me to remove it after I built a new web page. Now I want to tell you that it is too late to do so. In that case, what is the meaning of this sentence, and what is the influence?

The empty theory will soon stop talking about it. I don't understand any concepts or terms. Just say that it has any inspiration.

You can take a look at the differences in the above three sentences of code, which represent three different XHTML document types.

Transitional type: refers to a transitional type, the application of this type of browser analysis of XHTML is relatively relaxed, allowing the use of tags in HTML4.01, but must be consistent with the syntax of XHTML. This is the common method at that time, and this is the type that is acquiesced in when setting up a web page with dreamweaver.

Strict type: severe type, so that diachronic browsers will be relatively strict, do not allow the application of any display content identity and attributes, such as the direct use of bgcolor post-color attributes in elements.

Frameset type: frame page type, if the web page applies a framework organization, it is necessary to use how much document declaration.

The brief introduction of Gendi situation is over, now we know why CSS is not effective, don't look at such a sentence, you can't face it squarely!

Although CSS5 summarizes the simplest DOCTYPE simplification, no matter what version of HTML it is, the following code applies:

Simplified html DOCTYPE code is fine. Whether it is HTML4 or HTML5 as usual, PC PC readers or mobile phone readers are compatible.

After reading this, the article "how to choose the right Doctype to solve the problem of CSS failure" has been introduced. If you want to master the knowledge points of this article, you still need to practice and use it yourself. If you want to know more about related articles, you are welcome to follow the industry information channel.

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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report