Pro Yearly is on sale from $80 to $50! »

Front-End Development 101: Html & CSS

78230a48274b549307fb8a99848b8075?s=47 najam
October 11, 2013

Front-End Development 101: Html & CSS

introductory session for html & css given to moftak solutions team.

78230a48274b549307fb8a99848b8075?s=128

najam

October 11, 2013
Tweet

Transcript

  1. Front-End Development 101 HTML & CSS Najam Sikander Awan @najamsikander

    www.moftak.com
  2. Examples and Discussion  Examples on github  http://bit.ly/GGolFl 

    Google Group  http://bit.ly/19zsstE  Front-end 101 Topic  http://bit.ly/1hBLVi4
  3. Agenda  History  For Whom  Students  Back-end

    Devs  Front-end Devs without basics  Why  Html will stay and expand  Easy to start  HTML /CSS  Future  Desktop Development  Mobile Development
  4. 1989 1990 1991 Berners-Lee

  5. Evolution Of Web  http://www.evolutionoftheweb.com/?hl=en- gb#/evolution/day

  6. None
  7.  Content/Data: html  Presentation: CSS  Behavior: Javascript

  8. Anatomy Of A Web Page

  9. Bad Tags  B big center font i small strike

    u
  10. Doc Types  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

    "http://www.w3.org/TR/xhtml1/DTD/xhtml1- strict.dtd">  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1- transitional.dtd">  http://www.w3.org/QA/2002/04/valid-dtd-list.html demo
  11. Minimum Tools for Development  Text Editor  Browser 

    Web developer toolbar  Firebug / chrome dev tools / IE dev tools  JsFiddle  Cross Browser Testing  IE Tester [IE6+]  Chrome  Firefox  Opera  Safari
  12. Semantics  Elements  Inline Elements  Block Level Elements

     Inline-Block Elements  Attributes
  13. Validation  Valid Html  Valid CSS

  14. None
  15. None
  16. None
  17. Assignment  Create your cv in Html  One column

    layout  Doc type strict  IE 6 to all modern browsers  Choose tags carefully
  18. None
  19. Adding Style  In-line  External  <link rel="stylesheet" type="text/css"

    href="/css/styles.css" />  @import url('/css/styles.css');  In-Page
  20. Selectors  Group  Class  Id  Pseudo-Classes 

    A:visited, A:hover  Pseudo-Elements  Content on fly  Clearing float  p:first-line  CSS3 Selectors
  21. Universal selector * { }

  22. Element type selector body { }

  23. Class selector .copy { }

  24. Id selector #copy { }

  25. Attribute selector Input [type=“submit”]{ }

  26. Group Selector h1, .h1{ Font-size:60px; }

  27. Combinations Li a img{ margin: 0 10px 0 10px; }

    Li > a{ margin: 0 10px 0 10px; } ul + p{ background: yellow; }
  28. Pseudo - Classes tr:first-child { color:black; } li:first-child { margin:

    0; }
  29. Pseudo - Elements p:first-letter { font-size: 40px; } p:first-line {

    color: green; }
  30. None
  31. Browser Styles  Browser default style sheets  User Style

    sheets – firefox plugin  CSS Reset  Box Model
  32. None
  33. Box Model  Content box  Padding box  Margin

    box  Border box demo
  34. CSS: Typography  Color of page elements  Color for

    links  Font styling  Family  Color  Size  Line height  Letter spacing  Word spacing demo
  35. CSS: Background Images  Specify background  Background positions 

    Background repeat  Fixed or Scroll demo
  36. Floats

  37.  http://www.yuiblog.com/blog/2010/09/27/clearfix -reloaded-overflowhidden-demystified demo

  38. Display  Inline  Block  Inline-block

  39. Positioning  Fixed  Relative  Absolute  Static 

    Z-index demo
  40. Fixed

  41. Relative

  42. Absolute

  43. @stubbornella @jeresig @shanselman @addyosmani @elijahmanor @paul_irish @rmurphey @robconery @SlexAxton

  44. Resources  http://net.tutsplus.com/  http://alistapart.com/  http://www.smashingmagazine.com/  http://css-tricks.com/ 

    http://css-weekly.com/  http://html5weekly.com/  http://diveintohtml5.info/  http://www.html5rocks.com/en/
  45. None