|
Posted by Al Camp on 12/21/80 11:23
Andy,
Thanks for the tips. I am using HTML-Kit to develop my pages, and I just
"gutted" it out. It took about a week or so to code everything up. I did
just a bit of HTML 3.0 some years ago.
Right now, the site is up and running, everything works fine, so I'm a
bit hesitant to mess with anything right now. I pass Tidy and W3C 4.0
Trans, but may try the 4.01 you suggested today.
I dropped the OnMouseOver for now... I have a new HTML book on it's way,
so I'll wait to see what it says regarding that.
>> And W3C suggested adding this line...
>><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
I got errors on W3C... followed their written instructions... added that
statement... and the error went away Again, everything runs with IE and
Firefox, so I won't kick a sleeping dog on that matter either.
Thanks for the help,
Al Camp
"Andy Dingley" <dingbat@codesmiths.com> wrote in message
news:so0af1hst513qt93rnlp28bhl7ojh09dtj@4ax.com...
> On Sat, 6 Aug 2005 10:19:34 -0400, "Al Camp" <anon@anon.net> wrote:
>
>> My editor (HTML-Kit V292)
>
> You are using a text-only code editor, not a WYSIWYG (DreamWeaver or
> FrontPage). Now this is a good thing (and certainly favoured by local
> prejudices) but it does have a slightly steeper initial learning curve.
>
> In particular, don't add things to your code without first finding out
> what they're for.
>
>> puts this entry on every page...
>><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
>
> This is a "doctype" Search back in this newsgroup for why they're a
> good thing.
>
> Really you should use this one (later version)
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
>
> or even this one (which is "Strict")
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
>
>
> Strict isn't much better and you might find the Transitional one useful
> in practice, but it's a good teaching guide to just use the more
> restrictive one to begin with.
>
>
>> And W3C suggested adding this line...
>><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
>
> Funny - I'd have expected the W3C to be too busy to take a personal
> interest in individual sites. Did you get a personalised carrier
> pigeon from Dave Raggett or something ?
>
> I'd avoid using this meta element. It barely works at all, you
> probably don't need it, and if you do really need it, then you should
> use the HTTP headers as the right way to achieve the same result.
>
>
>
>> I built my web site, and all my code passed Tidy HTML and W3C.
>
> A good start. Validation is generally agreed to be A Good Thing.
>
>> I added the following OnMouseOver/Out code... (got it from Googling
>> this
>>NG)
>> <A HREF="index.html"
>>onMouseOver="document.homepage.src='img/btn_homegrn.gif'"
>>onMouseOut="document.homepage.src='img/btn_home.gif'">
>> <IMG SRC="img/btn_home.gif" name="homepage" ALT = "0" BORDER="0"
>> height=
>>"47" WIDTH="131"</A>
>
> You have a missing closing ">" at the end of the <img> tag
>
> However this won't break Tidy on its own - there's presumably something
> wrong with the rest of the page.
>
>> Now Tidy won't work at all. It comes up blank even if I put in a gross
>>error, and W3C indicates that I'm not compatible any longer.
>
> It gives you an error message too. This may help to solve the problem
> (although they're admittedly cryptic and often hard to understand (the
> real problem is usually some distance before where it becomes obvious).
>
>
>> I gather I may need a script, but isn't there any HTML method to
>>accomplish the OnMouseOver/Out?
>
> This is better done these days by using CSS and background-image with
> a:hover (Search this newsgroup)
>
> Your code should basically work, although it's hardly ideal coding. If
> it's giving problems, try using both images in turn in the <img> element
> - chances are that it can't find one.
>
> ALT = "0" is a bad choice too. Use something sensible, or else an
> empty string, but never "0" or "logo" or (even worse) "irrelevant
> spacer image".
>
>
> Some general advice:
>
> - When posting problems to this newsgroup, post a URL to the code.
> We're good, but we're not psychic ! Don't post fragments - give us a
> URL to the same entire page and server context that you're seeing.
>
> - Switch to CSS for controlling presentation, rather than obsolete
> attributes like border. With a good CSS book (like Lie & Bos) you'll
> learn this more easily than old-style HTML.
>
> - Use lower case for your HTML tags and attributes. Easier to read, and
> compatible with XHTML in the future.
>
> - Get an editor you're happy with. Lots to choose from, no need to be
> stuck with one.
>
> - Use Firefox as a browser and the Tidy validator plugin. Tidy isn't a
> great validator, but it's useful to have it so close at hand.
>
>
[Back to original message]
|