Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Markup (HTML, XHTML, XML) _ Problem with links

Posted by: cis-java Mar 7 2018, 02:18 AM

Hello everyone,

I'm new to this forum.

I have an exercise to do and I'm having an issue with all of my links. I can't add the link of the page because it's on the school server but I'm adding screenshots.

In this example, the image is not showing up even though it is in the right folder and I am calling it properly. I tried both absolute and relative and it's not showing.

Some weird symbols appear "src=“images/garbage.jpg”" when I click on View Source.

What am I doing wrong? huh.gif




Attached thumbnail(s)
Attached Image

Posted by: pandy Mar 7 2018, 10:07 AM

You are using weird characters. happy.gif

Those characters should be plain quotations marks. Like so.

CODE
src="images/garbage.jpg"


The characters you see are supposed to be curly quotes, smart quotes. You may have used Word or similar to write the HTML and it has inserted those fancy quotes. If you open a document with such characters in a plain text editor that doesn't support unicode you might see those garbage characters instead, though some might support the curlies too. You may have done something like this and then saved the document.

Curly quotes are never allowed in HTML, not even in a unicode document. Even if the text can use unicode characters the HTML part is always strictly restricted to ANSI characters. That basically goes for all computer languages, not only HTML.

What you need to do is to open the document in a plain text editor and replace those two garbage strings with straight quotes throughout the document. You can use Find & Replace. Note the garbage strings are different for opening and closing quotes, so you must replace them one by one. You may have other funky characters in the document too. If you can spot them it's good. Otherwise keep this in mind if something else screws up.

Don't use Word and the like to write HTML or any kind of code. smile.gif

Posted by: cis-java Mar 7 2018, 12:41 PM


Thank you Pandy!!

I used BBedit to type my code.

I downloaded Bracket, opened it and I could see the curly quotes. I changed them and now it's working. Thanks so much for your help smile.gif

I'm not sure why it happened. I'll probably use Bracket from now on.

Posted by: pandy Mar 7 2018, 07:35 PM

I'm not a Mac person, so I've never used BBedit, but we hear all the time it's the very best. Maybe there is some setting that's wrong?

Posted by: cis-java Mar 7 2018, 07:38 PM

QUOTE(pandy @ Mar 7 2018, 07:35 PM) *

I'm not a Mac person, so I've never used BBedit, but we hear all the time it's the very best. Maybe there is some setting that's wrong?


I used BBedit before and I loved it! I downloaded the last version and maybe indeed I need to change some settings. That being said, Bracket is a great alternative smile.gif

Posted by: pandy Mar 7 2018, 10:56 PM

Lookie what I found! Have an option called "Use typographer's quotes"? Read the whole thing. Sounds like you can set that preference for each file type.

https://groups.google.com/forum/#!topic/bbedit/DGTeW1p2EBs

Posted by: cis-java Mar 8 2018, 04:01 PM

QUOTE(pandy @ Mar 7 2018, 10:56 PM) *

Lookie what I found! Have an option called "Use typographer's quotes"? Read the whole thing. Sounds like you can set that preference for each file type.

https://groups.google.com/forum/#!topic/bbedit/DGTeW1p2EBs



Awesome! Thank you so much! smile.gif

Posted by: pandy Mar 8 2018, 05:42 PM

Did it work? Thank google, not me. happy.gif

Hm. Not much one wants to think google for these days. wacko.gif

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)