Click to See Complete Forum and Search --> : I'm having trouble validating my HTML


stacywacy
06-07-2005, 08:35 PM
I keep getting this error when I try to validate my HTML:

"<img src = "new.gif"> &nbsp;

Have you forgotten the "equal" sign marking the separation between the attribute and its declared value? Typical syntax is attribute="value"."

I've tried several different things to no avail, and I have no idea what it wants me to do. I had it working a few hours ago, and now my gif doesn't show at all. My gif is supposed to be in the dotted box. What exactly is it trying to tell me?

Two more questions.

How do I change the color of my links using CSS? I tried putting it in the body tag, but I get an error when I try to validate. Is there another way to do it?

And, lastly, I have on my site a numbered list. I want to have a blank line (or extra space) after each number. I've tried <p><li>blah</li></p>... and <li>blah</li><br>. Both ways will give me an error message when I try to validate. Does anyone know how I can put an extra space between my sentences?

I'm working on one page at a time, so I'm only refering to the index (http://www.meanmug.org) page.

Thanks for any help.

EDIT:

Okay, I lied. I have one more question. I don't want to create different threads for all my questions. Can I create a thumbnail using HTML, or do I need to use a software like Frontpage?

elaurvick
06-07-2005, 08:59 PM
Not sure if it will help, but try removing the spaces in <img src = "new.gif"> &nbsp;
i.e. <img src="new.gif"> &nbsp;

stacywacy
06-07-2005, 09:06 PM
Thanks, but it doesn't work.

Edit.

Okay, I found the problem with the image. I was missing a quotation mark at the end. Thanks.

ray326
06-07-2005, 11:02 PM
Okay, I lied. I have one more question. I don't want to create different threads for all my questions. Can I create a thumbnail using HTML, or do I need to use a software like Frontpage?Neither. You need to use software like IrfanView, Photoshop, Compupic, the GIMP or other image manipulation tools to create a resampled thumbnail image for use on your page.

Bootsman123
06-08-2005, 08:26 AM
I would suggest you make your page XHTML valid:
<img src="" alt="" />

Stephen Philbin
06-08-2005, 08:36 AM
I would suggest you make your page XHTML valid:
<img src="" alt="" />

Or Better still, HTML 4.01 strict valid.

stacywacy
06-08-2005, 10:47 AM
Thanks ray. Does anyone know the answers to my other questions?

HTML 4.01 Strict is too strict. W3C doesn't even use it on their site.

ray326
06-08-2005, 04:57 PM
HTML 4.01 Strict is too strict.Why?
How do I change the color of my links using CSS? I tried putting it in the body tag, but I get an error when I try to validate. Is there another way to do it?
In your style sheet:
a:visited,
a:link,
a:hover,
a:active { color: #0ff }
And, lastly, I have on my site a numbered list. I want to have a blank line (or extra space) after each number. I've tried <p><li>blah</li></p>... and <li>blah</li><br>. Both ways will give me an error message when I try to validate. Does anyone know how I can put an extra space between my sentences?First you need to decide whether you have "sentences" or "paragraphs" or a "list" as stated. That tells you whether you're tag should be <p> or <li>. Then you simply style it as needed.
li { margin-top: 1em }

What you really need to do is get Cederholm's book. It's a fantastic how-to/why-to tutorial combination.

stacywacy
06-09-2005, 02:30 AM
Thanks, it took me forever to find that over the Internet. I'm not using strict because I've only begun learning Website design for less than a year at school and I don't want to make it more work than it already is. Heck, I'm already having a hard time making my pages valid w/o it.

Stephen Philbin
06-09-2005, 04:55 AM
Transitional is "harder" to validate because of its looseness. Strict is much smaller and there's much less to know. It's far more simplified.