html/css the beginning

36
HTML & CSS „THE BEGINNING” Monika Zamojska Bartosz Tupta

Upload: webmuses

Post on 03-Aug-2015

74 views

Category:

Technology


0 download

TRANSCRIPT

1. HTML & CSS THE BEGINNING Monika Zamojska Bartosz Tupta 2. HTML CSS 3. DOCTYPE it is an instruction to the web browser about what version of HTML the page is written in HTML5 HTML 4.01 Strict 4. []

[] 5. [] [] 6. #xyz { color: red } 7. SELECTORS .className {} tagName {} #idName {} .className.classNameModificator{} tagName[attr=value] {} .className:pseudoClass {} * {} element > element others 8. PROPERTIES ~ 200 9. SEMANTIC HTML WHY SO IMPORTANT? 10. developer I feel so guilty adding a div. Div-itis is terrible, I hear. 11. SEMANTIC REALISM ACCESSIBILITY READABLE 12. UNITS %, em, px, pt, pc, ex, cm, mm, in, rem, vh, vw, vmin, vmax 13. PX. 14. EM Relative to the font-size of the element (2em means 2 times the size of the current font) (but only font-size) Useful in Responsive Web Design 15. EM (EXAMPLE) body { font-size:14px; } h1 { font-size:2em; } p { font-size:1.2em; } h1 header 28px and this is a paragraph which is 16px http://pxtoem.com/ 16. % 17. THE FIRST TIME YOU APPLY A CSS TO A WEB PAGE 18. LESS / SASS CSS preprocessors 19. MONIKA! ITS YOUR TURN! 20. CSS DIN(N)ER 21. HELPERS! Monika Robert Tomasz 22. OPEN IT. http://bit.ly/1oEpqyD or just http://flukeout.github.io/ 23. TIME FOR WORKSHOPS! you have 90 minutes youve got our helpers download assets from: http://thewayforward.pl/pinksponge.zip 24. GO!