Web Development requires best practices. Although a website may be aeshetically pleasing, the developing process must be pleasing to the server and search engines.
A few of my best practices include the following:
The last thing a visitor on a website wants to see is a non functional page or component. They are visiting a page for a reason, to learn more about it. It is good practice to double and triple check closing tags to avoid any errors and make content always available.
Stylesheet & Script Linking
There is absolutely no need to load the code over and over again, why reinvent the wheel? Stylesheets and Scripts should be linked and not embedded within pages. This allows the browser to load the page faster and makes the user browse through a website efficiently.
We absolutely love graphics! That’s one of the best things about a website. We don’t however like never ending loading graphics. The graphics that may take more than a few short seconds to load and much less minutes. Image optimization allows a graphic to load quickly with almost no load time.
Stylesheets and scripts can get extremely long and hard to read even when they are neatly organized. Commenting and diving as stylesheet or script into sections helps fellow coworkers find exactly what they are looking for without going through the entire code, making the developing process run smoother.
Cross Browser Checking – including Internet Explorer, FireFox, Chrome, and Safari
You already knew this one was coming. There are millions of users out there but each one of them is divided with their browser of choice. Why not make it available to everyone? Throughout the development process browser check should be performed during each “milestone”. An overall check once the development process has been completed is ideal.