Simple Ways To Write Search-Friendly HTML Code

Some mistakes can cause search engines to choke when it comes to indexing your websites. And its easy to avoid making these mistakes. Here’s how:

1. Don’t repeat yourself. Use server side includes for headers, footers, menus, and standard "head" items such as links to CSS documents and external JavaScript files.
2. Balance tags in server side includes. If an include file starts with "
" it should end with "
". This way each file can be viewed in Dreamweaver design view, and includes files do not depend on each other.
3. Place JavaScript in external files and reference them as needed.
4. Each page must have a unique "" and "<meta name="”description”" content="”This">". Don’t put these in server side includes. <br /> 5. The title should be <title>Name of Company - Name of Page"" or ""Name of Company - Name of Category - Name of Page unless you are told otherwise.
6. The description should be the first one or two meaningful sentences of content unless you are told otherwise.
7. Please make all links and references to images, CSS and JavaScript root relative by starting them with a slash, "/". If you use Dreamweaver, set the “Links relative” option to “Site root” in the Site Definition wizard. Root relative links don’t break when files are moved from one directory to another.
8. Too many files in one directory makes things hard to find. Use subdirectories.
9. Run your code through a validator and keep it clean. Removing trivial errors makes real errors easier to spot.

Comments

Manoj said…
Hi Shikha,
hw r u?
nice info .....
hw u manage alll these things with ur tufff schedule...
well,
thanks for nice informative blog
keep it on........
bye & take care...

Popular posts from this blog

Hallmark Cards .. Inside - Outside .. funny!

The problem I experienced with while installing IIS: And The solution is...

Dadi Maa ke Nuskhe