In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "what is the difference between CSS and HTML". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "what is the difference between CSS and HTML".
If a web page is written only in HTML code. By default, there is no style to speak of, just as we have built a building, but it has not yet been decorated, and HTML is equivalent to the main body of the building we have just built, and the CSS we began to learn is decoration, but CSS is for HTML to achieve beautification, of course, not only beautification, but also layout.
CSS full name: Cascading Style Sheets is translated into cascading stylesheets that define how tags in HTML are displayed. For example, we want to make the text of the H1 tag in the web page not so large, or change the color, and so on, such as a series of such problems, can be achieved through CSS. At present, all major browsers support CSS.
Classification of CSS selectors:
1.HTML tag selector
two。 Group selector
3. Include selector
There are two types of custom selectors
1.Class selector
2.ID selector
HTML tag selector: just use the HTML tag in BODY as the selector, as in our first example.
But this kind of selector has a limitation. Suppose we have two paragraphs. To set a different effect. What are we going to do? Of course, we have to use the selector together. Grammatical norms are
Selector {attribute: property value;}
Summary: we remember that we can use group selectors as long as our CSS attributes are consistent.
Include selector: find the content contained, in the form of UL LI a (PS: add links to the list) in our HTML, if we want to style the links in the list. At this point we can use the include selector. The legal norms are:
Selector {attribute: property value;}
Note: this is the child of the parent space HTML in the HTML separated by spaces.
Thank you for your reading, the above is the content of "what is the difference between CSS and HTML". After the study of this article, I believe you have a deeper understanding of what is the difference between CSS and HTML, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.