Netpond


Welcome Guest !
please login or register a new free account.


Home | Archives | Submit Article | Resources | Webmaster Tools | Contacts Us | | Netpond

    Main Categories
» Startup Guide
» TGP
» Free Sites
» Blogs
» Traffic
» Content
» Graphic Design
» Technical Tutorials
» Hosting
» Paysites
» Search Engines
» Tech News
» General Business

  More Options
» Most read articles
» Most rated articles

   Subscription
Subscribe now and receive free articles and updates instantly.
» Your name » Your Email

titles description    advance search
Published : October 25, 2006 | Author : haui
Category : Startup Guide | Total Views : 430 | Unrated

  
haui
Hi Folks, we bring you here tons of tutorials writen by great webmasters and collected them over at Netpond.com
LESSON 3 - 10 STEP HTML DIET
  



  1. Use fewer files and directories

     

    • Every file is a separate call to the server.
    • Instead of using many small images you might consider
      using an imagemap.
    • Decrease the number of directory structure levels.

     

  2. Limit your spacing

    • While we know that spaces in your code, as a rule, should
      not effect the layout, it does effect how it's parsed.
      Decrease or eliminate the spaces between your lines of code.


     

  3. Use relative addressing instead of absolute addressing.

    • instead of using href=http://www.mydomain.com/images/pic1.jpg
      use href="../images/pic1.jpg"
    • to really speed things up use the <base>tag in the
      <head>like this:

      <base href=http://www.mydomain.com>


      then use relative addressing in the rest of the page.

     

  4. Use HTML to control spacing when possible

      Instead of using a spacer.gif to manipulate space, try
      using &nbsp; for horizontal spacing and the <br> and <p>tags
      for vertical spacing.



     

  5. Eliminate repetitive tags

    • This is something you'll often find in pages created with
      point and click web applications (WYSIWYG HTML editors) For
      example:



      <font face="arial">Hello World</font> <font face="arial">Welcome
      to my web page.</font>



      In this example the first </font> and the second <font face="arial">
      could be eliminated.

     

  6. Eliminate attributes with default values

    • For example, you don't need to use these:

      <body text="black">

      <div align="left">

      <font size="3" color="silver" face="times">

       

     

  7. Use short file names and directories

    • Instead of href="../imagefiles/companylogos/advertisements.html

      try href="../imgs/logos/ads.html

     

  8. Use Cascading Style Sheets

    • Use CSS to position your content. It requires less code
      and you have more accurate control over layout.

     

  9. Beware of WYSIWYG code trash

    • Many web authoring apps add their own proprietary code.
      FrontPage is notorious for this. Beware!!
    • Clean up your META tag. You don't need the following info
      in your METAs:

      <META NAME="generator" content="Microsoft FrontPage 4.0">

      <META NAME="ProgId" CONTENT="FrontPage.Editor.Document">

     

  10. Table Savvy

    • Avoid nesting tables. Rather than creating complex table
      layouts, use the attributes rowspan and colspan to control
      content layout.
    • If you can, fill empty table data cells with &nbsp; This
      weighs less than a spacer.gif.
    • Tables take time. Even if you need to use a table for some
      of your content, the entire page doesn't have to be in a
      table.



    1. There you have it. Follow the HTML Diet and your web pages will be
      looking and feeling healthier immediately!!!

     


    Click Here To Discuss This Or Ask Questions On The Netpond Message Board!



    1 2 3 4 5
    please rate this article     Poor
    Excellent    

     Visitor's Comments !

    there are no comments...


        Random Pick
    How to Photograph Girls - The Professional Way -- Part 3 -- by Paul Markham

        Statistics
    » Total Articles
    94
    » Total Authors
    15
    » Total Views
    97412
    » Total categories
    13

    Delete cookies set by this site | Top

    Copyright 2006 © Netpondresources.com