websitewebsitewebsitewebsitewebsitewebsitewebsitewebsitewebsitewebsite
website
www.findlegalforms.com

 [275 visits]Ads by Web Top Links Powered by gdshop gdshop reseller APi 
home | web hot tips | web top links | web top services
Web Tips
Select a category ¬

 Apache CSS Commerce Domains Flash Free Service HTML Hosting JavaScript MySQL PHP Promotion Resellers Servers XML


Use class with semantics in mind:  
  • [41803] Use class with semantics in mind ¬

    Often people use class names like bluetext, or redborder. A much better way to name your classes is with the role a certain HTML element of that class has.

    Good names don't change

    Think about why you want something to look a certain way, and not really about how it should look. Looks can always change, but the reasons for giving something a look stay the same.

    Good names
    warning, important, downloadableImage and submenu are all good names. They describe what a certain element represents, and they are not likely to change. A warning will always remain a warning, no matter how much the look of the page changes.
    Bad names
    border4px, lighttext and prettybackground are examples of bad names. You might fatten that border to a whopping 5 pixels, or the background may look pretty old after a while, and not pretty at all. An advantage of using CSS is that you won't have to change much in order to change the looks of your website. If you have to change all light text into dark text, and thus change all classes lighttext to darktext in all your HTML pages, you're likely to miss a few.

    Vía: www.w3.org/QA/Tips/goodclassnames »



Tip Of The Day:  
  • [41529] Care With Font Size ¬

    A certain trend among designers, believing that small text gives a Web page a sleek appearance and provides more space per "page" for actual content, sometimes results in the use of unreasonably small font sizes


Domains   •   Hosting   •   Servers   •   Shopping Carts   •   SSL Certificates   •   Web Services   •   APi Resellers   •   Top

website
website website