What is CSS?
CSS (cascading style sheet, which can be translated as "cascading Style Sheets"), is a set of formatting rules that govern the appearance of web pages
How do I make a label have a style
First step: Must ensure the introduction of the correct way
The second step: you must have CSS and HTML elements associated, that is to find this element first
Step three: Modify the HTML element style with the corresponding CSS properties
Three forms of CSS introduction
1. Embed CSS into HTML files, which is also called inline style sheets, such as
<! DOCTYPE html>
2. Link an external style to an HTML file, which is also called a linked style sheet, for example:
<! DOCTYPE html>
3, add style sheet to HTML file, this way is called inline style sheet
<! DOCTYPE html>
Base Selector ID selector:ID selector appears only once in CSS
<! DOCTYPE html>
class selector : Classify elements of the same type, the benefit of classification definitions is the ability to reuse
<! DOCTYPE html>
Tag Selector : Use the HTML tag name directly as the name of the CSS selector, which affects the style of all the tags in the HTML
<! DOCTYPE html>
Day 2nd: CSS Quick Start