1, CSS, HTML, JS and other categories into a folder
2. <table><caption> Table title </caption></table>
<tr><th scope= "Row" > Row header </th></tr>
<tr><th scope= "col" > List header </th></tr>
The default is the row header if the property of the scope is not written
3, Button code: <input type= "button" value= "I am a button"/>
4.
<style>ul{list-style-type:circle}</style>
<ul>
<li> List List List </li>
<li> List List List </li>
<li> List List List </li>
<li> List List List </li>
<li> List List List </li>
</ul>
List-style-type:square
List-style-type:none
5. Focus
DIV+CSS layout
Block-level element features: 1, the content of the block element is the default in the upper left corner of the Block 2, the block element exclusive row, exists in the document flow,
What elements are block elements: 1.div 2.p 3.h1~h6 4.ol li ul li (list) 5.body 6.table 7.pre 8.form
Inline element Features: 1, Height width does not work 2, does not occupy a single line
What are the inline elements: 1.a 2.span 3.input 4,label 5.img 6.textarea 7.select
6. Change block-level elements into inline elements: display:inline
Block-level elements in inline elements: Display:block
Characteristic of both inline and block-level elements: Display:inline-block
7. Focus
Floating float to clear float after floating to not affect the subsequent Div layout
Clear:left/right/both (clear left, right, and left and then floating)
8. Focus
Box model (for block-level elements)
Inner Space: padding:10px to Content-centered, up and down around the open 10px;
padding:10px 20px; open up and down 10.20
padding:10px 2px 2px, open 10px, left and right to open 2px;
padding:10px 2px 2px 10px; open 10px, right open 2px, open 2px left open 10px (clockwise) open represents div height or width increased
9, the outer and inner spacing are the same, the property name is: Margin
10, because of browser compatibility issues, resulting in div and left and the browser has a gap, so define a global general effect
*{padding:0;margin:0;}
11, learn to debug (review elements to find problems, analysis, thinking!!!) )
12, the elements of the line also have a role in padding, margin
CSS Second Lesson notes