A new day began, early to get up to learn, learning to make progress ~

Today we continue to learn new things about CSS, such as the basic use of CSS and common properties.

CSS (Full name: Cascading Style Sheets (Cascading Style Sheets), a computer language for representing file styles such as HTML (an application of THE Standard Common Markup Language) or XML (a subset of the Standard Common Markup Language). It is a style design language that can truly separate web page presentation and content. Performance compared with traditional HTML, CSS to the location of the objects in the page layout for accurate control of pixel level, support for almost all of the style of the font size, with the web page object and the ability to model style editor, and able to conduct a preliminary interaction design, is the design language based on text shows the best performance. The CSS can be simplified or optimized according to the user’s understanding ability. It is easy to read for all kinds of people.

CSS is used to beautify web pages, CSS is useless without web pages, so CSS needs to rely on HTML to display its functions. The use of CSS

  1. The inline type

Inline styles define styles in the style attribute of a specific HTML element. Inline CSS is highly coupled and applies only to the current element. It is often used when styling an element.

This is a text

1 The way the style attribute is declared for the current element.

Style is an inline style property;

Color is a color property; Red is the color attribute value;

Font-size is the font size property; 50px is the font size attribute value

  1. The embedded

Embedded creates a CSS code area within the content of an HTML page, usually nested within a < head> tag

13. Introduce an external style file

In actual development, a lot of time to use the imported style file, this form of HTML page clarity, and can achieve better reuse effect.

style.css

p {color: green; font-size: 30px; } 1 test.html

1 REL: The rel property specifies the relationship between the current document and the linked document.

Stylesheet: The external stylesheet of a document.

Many times, a large number of HTML pages use the same CSS. You can then save these CSS styles in a separate.CSS file and import them through elements.

Note: When you have multiple styles, remember the premise rule, the more precise the better.

Take notes every day for better review in the future