Monthly Archives: %sDecember 2010

HTML Coding Tips

  • Use all lower case for tags and elements.
  • Properly align opening and closing tags using multiple lines and tabs.
  • Use css to control page borders.
  • Use space after commas ( ex: word 1, word 2 ).
  • Always use comments so other developers/designers can understand what you were trying to do.
  • Always use the id element and use the proper naming convention:
    •     image: imgMyPicture
    •     link: lnkMyLink
    •     div layer: dvLayerOne
    •     p: pParagraphOne
  • Tags must have an end tag, or be closed within the singleton tag itself, for example <br />
  • Use double quotes for all attributes.
  • Use seperate files for scripts & css definitions.
  • Always declare your document:
  •     <?xml version=”1.0” encoding=”UTF-8”?>
        <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
        <html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”en”>
        </html>

By |December 22nd, 2010|Coding, Uncategorized|0 Comments

World of programming (via Smashing Magazine)

By |December 22nd, 2010|Coding, Uncategorized|0 Comments

World of programming (via Smashing Magazine)

By |December 22nd, 2010|Coding, Uncategorized|0 Comments

SEO Tips

Recently my boss asked me to come up with a list of SEO suggestions for better page rankings. I decided to share this list with you. If you have any additional tips feel free to specify them in the comments sections.

  • Meta tags, descriptions do NOT work anymore with Google, but it may be useful for older search engines.
  • Place keywords in your url schema for example http://www.site.com/services/keyword (Search friendly urls)
  • Surround your keywords in h1-h4 and b tags.
  • Write unique page titles for your pages.
  • Use keywords in your content but don’t go overboard.
  • Linking to similar sites (Link building) is very important. Make sure the site you are linking  is a reliable site (Stay away from link directory sites, etc it will only hurt you).
  • Generate a sitemap and submit it to Google webmaster.
  • Utilize the image tag “alt” attrib to place additional keywords.
  • Get the word out with twitter, facebook, etc.
  • Utilize social networks sharing widgets to help spread the word.
  • Replace your default 404 pages with a link to other pages on your site or redirect to sitemap.
  • Utilize PubSubHubbub for your blogs. If you use the wordpress platform there is a plugin.
  • Do not use trickery to get a better ranking (Black hatting). It will get your domain flagged and you will need to get a new domain!
  • Use Google keywords tool to scope out your competition.

It is also important to understand that after making all these changes you may not be happy with your results. It’s not an exact science and search engine providers constantly update their algorithm.

By |December 22nd, 2010|Coding|0 Comments

Changing an ASP.NET web service to respond in Json instead of XMLj

Lately I have been writing a lot of my apps using JQuery and find myself using the ajax routine often. I prefer to communicate with Json instead of XML. The default response format for an ASP.NET web service is XML. To change your web method to respond in Json use the following method attribute:

[ScriptMethod(ResponseFormat = ResponseFormat.Json, UseHttpGet = false, XmlSerializeString = false)]

By |December 1st, 2010|Coding|0 Comments