HTML pre-inserting quotes in my code? [closed] - html

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this question
When I my code is opened in a browser my code pre-includes quotation marks in my image tags, thereby making all images files incapable of being found. Even in the alt text, if I include quotes it actually prints the quotes out.
Here's my code:
<img alt=“Batman” src=“batman.png” />
Upon clicking Inspect Element, the code looks like this:
<img alt="“Batman”" src="“batman.png”">
The code will only work when the quotations are left out like this:
<img alt=Batman src=batman.png />
I have tested this issue in every browser, this is really bizarre, PLEASE HELP ME!

You are using the wrong kind of quotation mark.
Use " not “. This will work:
<img alt="Batman" src="batman.png" />
What happens when you use the wrong ones is, the browser interprets them as part of the URL and appends the correct quotation marks around it. That, of course, won't work.

Related

HTML & CSS I'm hopeless - Brackets help - divs in CSS [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 7 years ago.
Improve this question
I have been trying to get this to work for a while now and I can't seem to work it out.
I am a beginner at CSS and I got told that Brackets might be good for me, seeing as I can enter CSS in the HTML page by pressing Flag + E to open a CSS editor.
Whenever I try and manipulate my 'example' div in CSS, in Brackets, the text goes red so I'm assuming I'm doing something wrong.
Here is some code and some images to help understand what I'm talking about (CSS and HTML):
TO VIEW THE IMAGES I think you have to click run code or something (not too sure, I'm a newbie lol)
<img src="http://i1166.photobucket.com/albums/q619/JoshMurrayEu/number%201_zpsgqlbkio3.png" border="0" alt=" photo number 1_zpsgqlbkio3.png"/>
<img src="http://i1166.photobucket.com/albums/q619/JoshMurrayEu/number%202_zpszwjiiym2.png" border="0" alt=" photo number 2_zpszwjiiym2.png"/>
Thanks in advance!
You've tried to end the previous ruleset with a { instead of a }.
This is a syntax error in CSS.
(This is a simple typographical error. Consequently, I've marked this as community wiki so upvotes don't get any points and voted to close the question using the typographical error reason).

HTML image won't show but href works [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 6 years ago.
Improve this question
The following tag shows a white box (broken image), but if I click on it the browser loads the image and displays it.
<img height="24" width="24" scr="/nicks/pic.png"/>
I have tried permission and so forth, and moved the directory.
The correct attribute name is src.
Don't use scr. Use src.
Use "src" instead of "scr".
src is short for "source". I've made this mistake myself too many times :)
An easy way to remember this is <img src="#"> stands for Image Source :)

How do I get rid of this little green box on my HTML/CSS page [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this question
http://pastebin.com/De29tEAg This is my HTML
http://pastebin.com/88BxpnSM This is my CSS
I just started coding yesterday, so bear with me
I decided to create a button (since it's all I can pretty much do), and underneath it, there's this little green box, that is also part of the link. What is it, and how do I get rid of it?
Delete that full stop/dot/period immediately after the img and before the closing a tag.
I.e.
<img src="http://imgur.com/ukmXAgG.gif /">.
Should be
<img src="http://imgur.com/ukmXAgG.gif /">

Can you use id and href at the same time? [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this question
I'm obviously a newbie and I'm running into a problem when I'm trying to turn text into a link while also naming it with an id.
I'm currently using:
<p id="you" You</p>
Using google.com to test.
I haven't been able to get the link working though.
I'm trying to ultimately make a button called You where I'll add all the CSS to id="you" but I want the You word to go to a link.
Can I not write it this way? Suggestions?
Your opening paragraph tag is unclosed.
<p id="you">You</p>
Alternatively, if you don't need the block styling the paragraph gives, you can just go with the following.
<a id="you" href="www.google.com">You</a>
Sure: You
You
Do you mean something like this?
Yes, it works just fine.
you

mystery symbol on page [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this question
I have looked at the markup for this page forever and I can't for the life of me figure out why there is a "greater than" symbol visible on this page in between the navigation and the main content. I keep staring at it because it bugs me but I don't see the mistake. Any help is greatly appreciated.
Page: http://cdaniels75.github.io/210/schedule.html
On line 57 of the source is this:
<tr><td>33</td> <td>04.28</td>><td>FINALS WEEK<br /><h6><a
Notice the extra > between <td>s.
That said you have a large number of markup errors on this page, like unclosed <a> tags and such. Run it through the validator.
in your favorite browser with dev tools installed, right-click on the ">" and select Inspect element (or similar) from the popup menu...