Home >Web Front-end >HTML Tutorial >css div summary [css div]_html/css_WEB-ITnose
After learning the CSS Div video, I feel that it is very clear. I don’t know it until I watch it. I was shocked when I saw it. It turns out that CSS can add a lot of color to a web page!
The full name of CSS is Cascading Style Sheet. It separates the style and content of the web page, decouples the two, and makes style control more flexible.
In the Html family, CSS is mainly responsible for Html style, JS is often used as a triggered event, XML can transmit a small amount of data, and Ajax mainly performs asynchronous refresh. They all achieve decoupling from web content and enhance cohesion.
CSS is very simple, just three selectors: ID (#), tag, class (.). The format is symbol name {}, put attribute attribute value inside {}. The format is as follows, IDThe symbol in front of the category name is #, tag is written directly in the position of the category name and tag name (such as: span):
These three selectors cover the entire CSS style control. All elements that can be seen on the web page can be polished through CSS. It controls not only the size, shape, and color, but also the layout of the web page, which requires the use of elements such as Div and Span.
CSS is really simple, but making a web page is not easy. The summary here is just the beginning, keep summarizing and move forward~
Copyright statement: This article is Articles originally written by the blogger may not be reproduced without the permission of the blogger.