dorayme said:
dorayme .. I've made an attempt to edit my old old original website (just
for the fun of it to see if I could do it). Tell me .. what do you think?
http://pqlr.org/TEST/index.html. I put it through a validator... and I'm
just tired of looking at the code. I think my eyes are telling me to STOP
for a while. LOL I tested it in IE7 and Firefox, but the validator says
it's good so far.
Yes, it validates so that eliminates many possible mistakes in
the markup, so that is good. You will find it quite useful to
also put it through a CSS validator. You can do this either by
going directly to:
<
http://jigsaw.w3.org/css-validator/>
or by installing a web developer add-on for Firefox. The
validator then comes up in the tools menu, you can validate local
or externally hosted pages, and the CSS one uses the one at the
above URL.
So, that is the first thing to attend to, the errors mentioned.
They are easily fixed. In CSS, unlike in HTML attributes, you
generally have to put units for quantities. If you put in a style
like:
<div style="width:200; background: pink;">...</div>
the browser will ignore the width and default to auto which is
100% wide when no borders, margin and paddings are there. How
ever if you put in the units, say px, or em or %, you get to be
cooking with gas.
I didn't put a meta tags in it yet.. that's the only thing I may need to do.
I guess it depends on how good you want it to be. There are many
things you can do that will help you strengthen your skills for
the future if you are doing this as an exercise. There are always
so many issues in these things. More than you can poke a stick at!
Perhaps if you attend to the issues mentioned first we might go
on to look at some of the other things that might be interesting
to examine. I will just mention one important one. It is very
rarely a good idea to use px units for fonts. In fact, it is
usually best to be very light indeed on saying anything about
font-size. But this is a complicated issue. A font-size of 100%
or 1em is the default (and therefore hardly needs specifying.
There is a bug in IE that makes it helpful to say at the body
level, font-size:100%; but let's not go there for the moment).