I learned something about it two years ago and almost forgot it. I recently picked up basic things at. Is it easy? Insist on sticking to it again. If you want to do one thing well, you must stick to it. Insist on reviewing every day and keeping everything learned every day down. I believe that through time accumulation, the result is a rapid development.
See belowCode:
Demo.html
<HTML>
<Head>
<! -- Introduce the CSS file -->
<LINK rel = "stylesheet" type = "text/CSS" href = "demo.css">
<Title> small case for getting started with CSS </title>
</Head>
<Div class = "style1">
</Div>
</Html>
Demo.css file:
. Style1 {
/* The CSS file is annotated using this definition */
Width: 400px;
Height: 350px;/* Pay special attention to the number of semicolons. You must write a semicolon. If the number of semicolons is missing, the problem may occur */
Border: 1px solid red;
Background-color: Silver;
Margin-left: 100px;
Margin-top: 50px;
Padding-top: 20px;
Padding-left: 30px;
}
Run: