Home >Web Front-end >CSS Tutorial >The most concise CSS learning notes
CSS is a computer language used to express file styles such as HTML (an application of Standard Generalized Markup Language) or XML (a subset of Standard Generalized Markup Language). CSS can not only statically modify web pages, but can also cooperate with various scripting languages to dynamically format various elements of web pages. CSS can perform pixel-level precise control of the layout of element positions in web pages, supports almost all font sizes and styles, and has the ability to edit web page objects and model styles.
name: name, can be repeated, can be the same;
class: The class name can be repeated or multiple, for CSS; such as
;id: unique identifier, cannot be repeated, generally used in JavaScript; the naming rules are the same as those of other languages;
title: title, which can be added in the tag; such as ;
Descendant relationship: parent-child relationship (including relationship);
Brother relationship: same-parent relationship;
CSS comments:/The comment content is written here for the programmer to see and will not be displayed on the page/;
CSS grammar rules: All symbols must be entered in English input mode, in lowercase, and attributes must be written in braces. Each attribute statement must end with a semicolon, and the attribute value must have a pixel unit (px); format : Attribute: attribute value;
Inline introduction: How to introduce styles in tags ;Format: