Friday, September 13, 2002

New HTML VQS 5e Web Site

Attempting to practice what I now preach, I've been completely redesigning my Web site with XHTML and CSS. Once I finally got a style down (such that it is), the actual work has been rather fun, the kind I can listen to music while I do it.

I've taken advantage of two shortcuts in my code. First, I've created a "current" class that I can apply to the section header and link for the current page. This current section then stays purple to indicate that it's being viewed, and the cursor does not change into a pointer over it (even though the link is still there). The technique is described in a bit more detail on page 185. Now that I've got several pages with the same links, this saves a lot of time.

Another time saver is to use absolute URLs that start at the root directory. Instead of, for example, http://www.cookwood.com/html/extras/entities.html I use /html/extras/entities.html to the same effect (but with much less typing).

I'm rather pleased with all of the data--the examples, index, table of (X)HTML entities, and much more.

2 comments:

Anonymous said...

The /html/extras/entities.html also saves you if/when you move to a new host. I have a local/test server set up (PERL, PHP, and MySQL) and I am constantly moving from http://localhost/ to http://mysite.tld.

Karl W Klambauer said...

i've done this website in css..worked great..

issue now is getting links on the left side to display on the main.

http://webdesigniinc.angelfire.com/index.html

any ideas on how to go about this or suggest another language to do links in ?


the main page is a cover page, click on any image to enter the main area.

i would like to have actual websites appear in the main content area of that page. so far, the target command in frames sends it to a new browser ..

is there a replacement tag for "target" or can it be written in xhtml even?

My Books