HTML image won't show but href works [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 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 :)

Related

Not showing the image of img tag [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 1 year ago.
Improve this question
I have a image tag on html code. which is used to generate a pdf. particular image for the image tag is taking from the server. but it is not showing the image. followings code is img tag what I have tried.
<img class="characteristics-image" src="https:://translate.orivet.com/images/last-page-2.png">
What is the wrong with this?
"https:://sales.com/images/img.png" is not a valid URL.
You meant "https://sales.com/images/img.png".

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 pre-inserting quotes in my code? [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
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.

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