Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Hyphen or Underscore

kaiye
December 10, 2010

Hyphen or Underscore

Semantic discussion about hyphen and underscore in CSS className. See more http://www.cnblogs.com/kaiye/archive/2011/06/13/3039046.html

kaiye

December 10, 2010
Tweet

More Decks by kaiye

Other Decks in Programming

Transcript

  1. 9 Confusing Naming Conventions for Beginners • http://net.tutsplus.com/articles/general/9- confusing-naming-conventions-for- beginners/

    • http://dayanjia.com/2010/10/9-confusing- naming-conventions-for-beginners-in-web- programming.html
  2. Oxford Dictionary • http://www.oxforddictionaries.com/page/ punctuationhyphen/ hyphen-;jsessionid=082070F581446958B28484 7E7564A28E • Hyphens are

    also used to stand for a common second element in all but the last word of a list, e.g.: • You may see a yield that is two-, three-, or fourfold.
  3. Hyphen strong point • easier to type • same with

    CSS property declare • avoid _hack and compatibility problem • semantization