Home Categories Archive Projects Highlighted posts & articles Web directory How to subscribe Contact Bob Toovey About this site


Website Rebuild: Heidiwoodhead.com - Removing structure



For this step we are simply removing any HTML that creates and controls the structure of the page. All DIV and SPAN statements have been removed along with ID and CLASS inside list tags (e.g. UL and LI). The last two specify the controls in the CSS definitions to be used to modify the HTML.

I have also removed in the hypertext commands the use of _Parent. For instance...

<A target=”_parent” href=”...”>

The use of _parent is to indicate that the same browser window is to be used to display the page, not a new one. However, when no target is specified then the browser assumes that the same window is to be used. So we can remove those.

To make sure the page passes vaildation, hypertext references must have the file names in speech marks. In fact anything that is not a number in HTML commands must be surrounded by them. For instance...

<a href=”filename.htm”>

<body bgcolor=”white”>

The first couple of times through validation picked up a few errors such as not using speech marks, spaces in HTML tags etc. However a few errors would not go away.

I use Ubuntu Linux and the text editor by default saves files in Western (ISO-8859-15), this means the way the characters in the HTML document are saved. After saving the file as UFT-8 all other errors that I could not get rid of vanished. I am sure Windows users will not have the same problem.

So now the page passes validation, we can now proceed to the next step

You can view the page that has been discussed here. Other pages have not been edited yet, once the home page has been created and we are happy with it, it can be used as a template for the rest. That ensures consistency and the same look and feel through out.



Permanant Link | Tag with Del.icio.us | Category : Projects






What visitors have said...

  1. Geoffrey Coan said on 27 October 2008

    Strictly speaking I think you only need to enclose text in quotes if it contains anything different from letters and numbers (i.e. contains "/", ".", ":", etc) so <body bgcolor=white> is OK but <a href=fred.html> needs the double quotes.
  2. Bob Toovey said on 31 October 2008

    Geoffrey...yeah you are right but it applies to anything with numbers in it.Take a table as an example...<table width=100%> That works ok on a plain HTML page but not for ASP pages. The latest standards actually requires certain commands to be in quotes such as TABLE, as in... <table with="100%">. This also makes ASP pages much happier as well.

    If required I can further expand on this in an article.

Comments for this posting have now been closed.

if you liked this article then subscribe to the RSS feed to keep up to date automaticly.




More recent articles in this category

-->

My name is Bob Toovey, a UK expat living in south west France. I have worked in IT for over 20 years. I hope to give you helpful advice about using your computer and more whether you run a business or just enjoying expat life.