Stylesheet, rel = "stylesheet"

Source: Internet
Author: User

Stylesheet, rel = "stylesheet"

I believe you are all familiar with this attribute. I will not repeat the introduction of this attribute here. Baidu, there are too many introductions about it, so I will record it here, the style sheet attribute cannot be omitted when the css file is introduced through link tag on the webpage. If it is omitted, the browser cannot parse the css style sheet normally.

Today, I was using the bootstrap framework to write mobile pages, but there was a framework. When I wrote it, there was no style in the release. After debugging for a long time, I didn't find it wrong. I finally started to look for it from the beginning, the result shows that the link tag has the stylesheet attribute missing, and the effect is normal after the stylesheet attribute is added. I'm not sure if the bootstrap framework is used. As a result, the stylesheet attribute must be added, and a test page is re-written. Nothing in bootstrap is used. When stylesheet is not added, the browser still cannot parse the style file. After adding the file, it will be normal. The html versions I tested include html5, xhtml1.0, and html4.01.

If there are other such items, please add them as soon as possible.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.