ireckon blog

our team offer up their best tips and words of wisdom

Ireckon.com Web Design Brisbane Australia

July 2008

The Importance of Structure for your Website

Posted by: Erin on 30 Jul 2008 @ 9:14 am Category: Web Design

It has become evident over the past couple of weeks just how important it is to follow a set structure in both html and css files.

Most companies have their own set structure by which employees are expected to follow, for the obvious reason that several different employees may need to work on these files. Having a common structure allows this to be done quickly and efficiently. However, as no two websites are exactly the same, it is easy to move away from this structure and move towards whatever works, especially when cross-compatibility issues are involved.

Just as this blog should have a beginning, a middle and a end, a site should have a header, body and footer. This is the shell and the easy part to follow. What happens within the body is where it can get messy. And while there is no global structure to follow, there are a couple of things to remember to make the file easily editable for other people on your team:

  1. Naming Conventions
    Ensure that the naming of classes are sensible and relate to what they are displaying. Also ensure that in the css file, common classes are grouped together. It is also a good idea to add comments in to separate sections or explain what they apply to.

  2. Spacing and Indenting
    Placing line breaks, spacing and indents in the file ensures the code is neat, tidy and easy to follow.

There is an endless list of other conventions to follow, but these are just two of the ones that I have found to be most useful. The structure above is not anything new, but as I have recently discovered, it is not until you are actually put in the position of editing other people's files, that it becomes glaringly obvious just how important it is to follow a solid structure.

Comments

Leave a comment

Enter code you see in image

Web Developement Blogs - BlogCatalog Blog Directory