Monday, June 8, 2009

Building a Web Page the Right Way

Without going into the details of code there is a right way to build a web page and a wrong way. In the past web developers took HTML, CSS and Javascript and dumped it all on a page called it the index.html and they were done. That is not the case any longer. To create it the right way you should have one page for content (XHTML), one page for style (CSS) and one page for behavior (Javascript). Then link those pages together. This way if you need to make a style change you only have to change one area, the code on the CSS page and that's it. So if you have 10, 50 or 100 pages this comes in quite handy. For example lets say you want change all of your navigation links to different color. The old way you would have to go through each page and change each link indiviudally. With CSS on a separate page you would first put your navigation in a