Hello raylm123, and welcome to the forums.
This is not normal behavior for an anchor element (<a>) so I'm thinking there must be something else in the code. The anchor is behaving like a block level element rather than an inline element, which would be the default.
Do you have CSS associated with the page? It could be in an external document, in the <head> section of this document, or in the opening anchor tag itself. If so, that's the place to look.
Also, here are some helpful links when working with display issues:
W3C Validator - HTML [validator.w3.org]
W3C Validator - CSS [jigsaw.w3.org]
Some display issues can be impossible to resolve if certain kinds of invalid mark-up are involved, so it's always best to ensure the code is valid before moving on to de-bug rendering problems.
[edited by: tedster at 5:49 pm (utc) on Feb. 13, 2008]
welcome to WebmasterWorld [webmasterworld.com], raylm123!
a good tool to debug this type of problem is firefox with the Web Developer 1.1.4 extension.
it includes the w3c html validator, built into the "view source" feature.
It might also be worthwile adding the firefox plugin Firebug, this allows you to alter CSS attributes on the fly so you can see how thye would effect your page.
Thank you so much for the link to the validator tools. Those will be a tremendous help and have given me a starting place to look for the problem. I'm guessing it has something to do with my tags because all three of the html links on my page show up with a problem on the validator tool. So now I've got a starting point! :)
No, I'm not using CSS. (I don't even really know what that is).
Believe me, this is a true beginner's page. It only has three columns, some text, three links, and one image.
I've only just started getting my hands dirty with actual coding this week. I've always used a WYSIWYG editor (Homestead) to build my websites in the past but have been convinced by others that I really should learn to build them myself.
So here I am!
Thanks for all the friendly welcomes!
It's nice to finally find a site where the members are really helpful and no one is trying to sell you something.
welcome to WebmasterWorld [webmasterworld.com], CaffinePhil!
Hey raylm123. Just out of curiosity, are you using a wysiwyg program like Dreamweaver or Frontpage to make the site? Sometimes they'll do some funky things you don't expect to links or other elements. I've found that if I have code like yours spread across a couple of lines that it sometimes actually throws a line break in there where there should be none.
Just a thought.
|....all three of the html links on my page show up with a problem on the validator tool |
One thing to be aware of is one error can produce cascading errors, the second, third.... and others on the list may not be errors. Fix the first one and revalidate it.
Thanks for the tips everyone. I'm using Coffee Cup's HTML Editor, not Dreamweaver or Frontpage. I'll have some time tomorrow night to play around with it so hopefully I'll be able to correct the problem then.
If not I'll be back for more suggestions. ;-)
|If not I'll be back for more suggestions. ;-) |
And even if you do solve your link problem, if you post your findings back here then someone will no doubt find it useful. And welcome again to WebmasterWorld :)
I guess you have been through the html of the page body to check for spurious P or BR tags. Even if you don't have the experience to debug CSS do check if your editor has created some styling, look at the page header and see if there are any style tags or a link to a .css file.