table of Contents
The relationship between HTML, CSS, and JavaScript
The comment in CSS is /* XXXX */
Compound selector, find the title in the P tag
CSS (Introduction)
CSS Cascading Style Sheets (English full name: Cascading Style Sheets) is a computer language used to express document styles such as HTML ( an application of Standard Universal Markup Language ) or XML (a subset of Standard Universal Markup Language). CSS can not only modify web pages statically, but also dynamically format the elements of web pages with various scripting languages.
The relationship between HTML, CSS, and JavaScript
- Structure, HTML is used to describe the structure of the page
- Performance, CSS is used to control the style of elements in the page
- Behavior, JavaScript is used to respond to user actions
The relationship between these three can be understood as HTML to describe a person is composed of limbs, head... CSS controls the external performance of the person, which is roughly yellow, black, and white. JavaScript plays the role of the person, how to walk, how to move
CSS syntax, inline style.
The comment in CSS is /* XXXX */
Class selector,
Multiple classes are separated by spaces
Compound selector
Relationship selector
Compound selector, find the title in the P tag
Hyperlink pseudo-class
Pseudo-element
Selector weight
Document flow,
、