Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Links inconsistant, some work others dont, why?

Status
Not open for further replies.

gennaroalpha7

Technical User
Nov 28, 2012
253
US
Hello, I added two (image and text) links, but they are not working consistantly. But, I have added others and some work and some do not. Can someone please review my code and provide some new insight. Thanks.



<TD vAlign=top width=191 height=140>
<P style="TEXT-ALIGN:center"><a href="page_10852.html"><img src="img_1161987028_new_15220_1369718807.jpg" class="c381" width= "161" height="140" border="0"></a></p></TD>

<TD vAlign=top width=191 height=45>
<P style="text-align:center"><a href="page_10852.html"><span class="s383f4 s12">Tygon&reg; Sanitary Silicone<br>Pressure Tubing 3370 I.B.</br></SPAN></a></p></td>
 
Hello, I added two (image and text) links, but they are not working consistantly

What does this mean? Just saying they don;t work consistently is rather vague. Tell us what happens, in what browsers this happens, when it happens etc...

When the links don't work what do they look like? What do they do?

As it stands, and based on your code, the only thing I can say, is you have a rather odd tag naming convention going on, with uppercase and lower case tags strewn about. But I doubt that would really cause any issues, unless you are a stickler for Validation or the browser being used is extremely picky.



----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Web & Tech
 
Hi

Phil said:
As it stands, and based on your code, the only thing I can say, is you have a rather odd tag naming convention going on, with uppercase and lower case tags strewn about.
Beside that, there is another oddity, which may mess up the link text abit : the closing [tt]br[/tt] tag. There is no such thing in HTML.


Feherke.
feherke.github.io
 
Hi, the browser is IE 8 and when I go to the web page they do not work. the links do not do anything and they look normal.

I don't understand it. As the capitilization should not be an issue. Please help. Let me know if you need more information. thanks.
 
your line break, and IMG tags are incorrect

Code:
<br /> <img ... />

it is also a self closing tag and does NOT have an opening tag.

All tags must be closed.

Darryn Cooke
| Marketing and Creative Services
 
Tygon&reg; Sanitary Silicone<br>Pressure Tubing 3370 I.B.</br>

I assume you've already got it working but look at this initial code. Open and close tags define the characteristics of the content between them. The <br> tag is used to tell the HTML parser to write a line break - it is the content, not an open tag.

-Geates

P.S. Because there is no open tag, no separateclosing tag is required. However, as Darryn alluded to, all tags should be terminated - which is way a <br> becomes a <br /> and <img...> becomes <img.../>

 
As a side note, your image file naming system seems a bit clumsy - maybe you could sort out some shorter file names for these with some descriptive component combined with the numerical part? It may help further down the line when you try to remember what those images were!

Similarly with your class naming - personally I'd go for something more descriptive - helps with de-bugging the code.

Finally, I heard somewhere that HTML files should be named with the 3-letter extension 'htm' rather than 'html', to avoid issues with certain servers. maybe someone can advise on that?

Apart from that, I think all code issues have already been spotted - did much of this come from an HTML compiling program?

Regards, Andy.
My pathetic attempts at learning HTML can be laughed at here:
[URL unfurl="true"]http://qsl.net/2e0waw/index.htm[/url]
 
Hi,

Yes,it did. I am working with it and learning as I try to maintain the website. I made the changes everyone suggested (thanks) and it went just fine from there. I found out the one link did not work because some text was interfering (in the table) with the link some how - so I moved it somewhere else. That seems to have corrected the problem, for now...

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top