Hi all, Can someone explain why removing the quotation marks in an “img” tag allows the image to show on my webpage but doesn’t show if there are quotation marks? I thought quotation marks are required.
< img src=images/segway2.jpg > - images show
< img src=“images/segway2.jpg” > - images won’t show
The below Img tag is what I have in my code. Everything else is fine. If I were to keep the quotation marks below, I get a broken image on my website when loading the site locally. When I remove them, the image shows just fine.
I remember learning to use quotation marks.
There is one key to put in quotes, but depending upon your text editor (Apple is particularly helpful like this because it knows better than its users) sometimes your regular quotes will be converted to smart quotes.
hmm you are right, it did convert my quotes. Ok looks like I had to adjust the preference from my text editor. This has been resolved. Thank you all for your help.