Image doesn't cooperate with linking - html

I'm trying to get this simple task to work but I can't seem to do it. I have a twitter & facebook icon and I'm trying to them in my header region. The links work but the image doesn't show up. I have tried giving the section an "id" and setting the image as a background region but that still doesn't work:
<img src="img/fbook.png" width="50px" height="50px">
<img src="img/twitter.png" width="50px" height="50px">
I am testing it in chrome.

The first problem is that you have not closed your image tag correctly.
<img src="img/twitter.png" width="50px" height="50px"/>
Secondly check that if that image really exists or not in that location.

Related

Is there a way to hyperlink an image that needs a <p tag to sit right inside footer?

<p style="text-align: center">
<img class="alignnone size-full wp-image-759 aligncenter" /><img
src="https://steamboateramuseum.org/wp-content/uploads/2021/01/ViFLverttransparent.gif"
/>
</p>
This is what I have now, I have been asked to link it but every time I add my <a tag and url to hyperlink it just doesn't work! Where would I fit a hyperlink into this? I am sorry for the stupid question in advance.
Okay so based on your comments I think I have understood your problem. Do following ->
<p style="text-align: center;">
<a href="here goes your link e.g. https://google.com">
<img src="i.imgur.com/I5DFV.jpg" />
</a>
</p>
Depending on your usecase you might have to update style to show it in better way, but this will work functionally
Although you question wasn't clear, but what i understood is your hyperlink containing an image is not working. Maybe you're missing Something in your quotes? anyway here is an example of a working hyperlink with an image.
<img src="images/someimage.jpg" title="Image hyper link" width="300" height="200" />

Proper <img/> source for ASP.net project?

I'm having trouble understanding how to get images to display on this ASP.net project. I'm used to using tags, but am having trouble with the paths.
I have tried all of these solutions and none cause the image to display:
<img src="~/Images/mask.png" alt="Sample Photo" />
<img src="~/Images/mask.png" alt="Sample Photo" runat="server" />
<img src="../Images/mask.png" alt="Sample Photo" />
<img src="Images/mask.png" alt="Sample Photo" />
<img src="../Images/mask.png" alt="Sample Photo" />
The Images folder is in the project root. I'm using Bootstrap 4.0 and no other CSS.
If I set the src to a link (to Imgur, for example), the image displays. This makes me think it's an issue with the path, but I don't know what it could be. I think I've tried every variation that I came across when googling.
Any guidance would be really appreciated, and please let me know if I need to elaborate.
Place images in wwwroot folder.Details in documentation

Problem with image links: difference in behavior (IE vs Chrome)

An image as a link:
<a href="https://www.w3schools.com">
<img border="0" alt="W3Schools" src="logo_w3s.gif" width="100"
height="100">
</a>
The above code behaves differently in IE and Chrome.
https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_link_image
In IE, when I tried to dragout the image it used to create a shortcut to
the href specified in the anchor tag. and also it used the alt attribute
to set the name of the short cut.
But it Chrome, It uses the image src attribute to download the image.
Is there any workaround to make it similar to IE in chrome as well?
An image as a link:
<a draggable="true" href="https://www.w3schools.com"> <img draggable="false" border="0" width="100" height="100" style='background: url(/tags/logo_w3s.gif);'></img>
</a>
I tried the above solution in Chrome, It helps in creating the shortcut
pointing to the href specified in the anchor tag. but it doesn't uses
the alt of the image.
If i tried to make
<a...>W3Schools<img...></a>
It helped but the string W3Schools is displayed as part of the page.

image hyperlink not working in WordPress text widget header

I located social icons in my text widget located in the header. It works in IE but not in Chrome or Firefox?? I am wondering if it has to do with my Artisteer 4 theme I am using, but I have looked at all the CSS and code and don't see what is interfering. My site is http://www.visualtechnologyconsulting.com
and the code in the text widget is:
<a href="http://www.facebook.com/visualtechnologyconsulting/">
<img class="alignnone size-full wp-image-372" alt="Visual Technology Consulting
Facebook" src="http://www.visualtechnologyconsulting.com/wp-
content/uploads/2013/01/facebook-logo-webtreats.png" width="75" height="75" />
</a>
<a href="http://www.linkedin.com/company/visual-technology-consulting/">
<img src="http://www.visualtechnologyconsulting.com/
wp-content/uploads/2013/01/linkedin-logo-webtreats.png"
alt="Visual Technology Consulting Linkedin" width="75" height="75"
class="alignnone size-full wp-image-373" />
</a>
I can see them in Chrome. Everything looks fine.
But maybe you post the CSS Part?
Nate, its working for me in Chrome and firefox. See here. Have you refreshed your browsers cache?
I found it!! it was a CSS issue I was covering the icons with the header div, needed to reduce it to 40%!!!
Thanks everyone!

image attributes appearing priority

<img src="#" alt="abc"/>
after above code rendered in browser the position of alt and src are changed like
<img alt="abc" src="#"/>
Is there is any way to fix these problem
"I want that every time src comes before others attributes!"