Содержание
- 2. Agenda Knowledge base HTML / CSS basics HTML tags, their attributes CSS specification and possibilities rules
- 3. Knowledge base TextTextTextTextTextTextTextTextTextTextText TextText TextText Text Text Text TextText TextText
- 4. Knowledge base Difference between: .style1 .style2 {color: red;} .style1, .style2 {color: green;} .style1.style2 {color: blue;}
- 5. Knowledge base What does it mean: .style1 {background: url(gfx/logo.png) -20px 0px;}
- 6. HTML / CSS basics – HTML tags, their attributes Content , , ,… , , ,…
- 7. HTML / CSS basics – CSS specification and possibilities span {color: red;} .classname {color: blue;} a:hover
- 8. HTML / CSS basics – CSS rule dependencies div span {color: red;} div .c1 #c2 {color:
- 9. HTML / CSS basics – CSS rules weight !important; .class {color: #454545 !important;} Inline style; script
- 10. Best practices Use clean and clear HTML with CSS: avoid inline styling; try to avoid tag;
- 11. Best practices Set classes, nevertheless it looks unnecessary Browser specific content; using classes instead of hacks
- 12. Best practices Use multiple classes for one elements: Abstract classes {float: left;}, {position: relative;}, {display: none;}
- 13. References http://www.w3schools.com http://google.com
- 15. Скачать презентацию