how to upload social media to html code? - html

I downloaded designmodo Flat social media icons. I want to use the facebook icon on my webpage. My code in sublime text 2 is
<img src="facebook.png"/>
When I open a browser in firefox, the icon doesn't show. What am I doing wrong?

The icon is not available at the URL you specified in the src attribute of your img element. Make the icon available at the URL you specify in the src attribute of your img element.

When you do
<img src="facebook.png"/>
you are asking the page to fetch the file facebook.png in the same url as folder as your .html file. All paths in html are relative paths to the images, starting at the folder containing the .html file.

Related

WordPress template showing black images instead of the url image only on Safari browser

My WordPress template called BoxWP is showing black images instead of the url image I load using <img src>.
This happens only in my template and only on Safari browser. I checked on Chrome and Opera, no problems there. I checked on a separate .html file on Safari with <img src="..."> and same url to load image and it works. So the problem is only on Safari browser in combination with the template called 'boxwp'.
The file I use to show the image is content-single.php. I just put <img src="..."> tag and load the url.
Try to load this image url in the file I mentioned:
https://gloimg.gbtcdn.com/soa/gb/pdm-product-pic/Electronic/2019/05/20/goods_img-v2/20190520141054_13268.jpg
I use Safari browser on Macintosh. You can download the theme here: https://wordpress.org/themes/boxwp/.
Any thoughts what might be the issue?

How to add download image in website?

I am trying to put a image in my website for Download. I am link the image url directly.
Click Here to Download
The image is open in browser. I need if click the image link that will be download to system?
Change it to this:
<a href="http://example.com/downloads/brand-logo.png" download>Click Here to Download</a>
Adding the download attribute to an anchor tag, downloads the file from the href attribute

Problems with showing images from disk in HTML

I have html document given by email html body (it starts with html xmlns:v= ).
I am showing this in HTML form control. In that are some images. The images with src on internet are shown correctly. but there are some images on disk which are not shown
img border=0 width=16 height=16 id="Picture_x0020_1" src="cid:image001.png#01CF84AD.48503B60".
I am seting the path to the files by WinApi::setCurrentDirectory (and images are in right folder) but it does not help. What else I should set?
Images from internet are shown correctly.
The Axapta HTML control does not support showing embedded images.
See also How to embed images in email.

What the semicolon mean in the src property of this img tag?

I have a chm ebook, and I decompiled it to html pages. But when I open some html pages with images, the images cannot display in my ArchLinux firefox browser.
When I saw the html source, I found the img tag is:
<img src="images/08fig02.gif;423615">, I can find the image 08f8g02.gif in the images directory, so I delete ;423615, and the image display well.
But this same page can display well in Firefox on Windows, also display well in Chrome.
So my question is: what this semicolon and the number after it mean?

image is not showing on html page

I am new in Ubuntu, as well as using lampp, My problem is, after storing image in image folder of my apps, image is not showing in HTML file ( image not found ). localhost document root is /opt/lampp/htdocs/, and my root folder is f_21 if I use the following link
http://localhost/f_21/index.html // not works
But image showing works well if I use following link:
file:///opt/lampp/htdocs/f_21/index.html // but it works
Any idea ??
You should keep both image and index.html files under htdocs.
for you,place your index.html and image files under f_21 folder and update src attribute of img tag in your index.html
If the link to the image is an absolute path based on your file system with the file protocol, then you won't be able to load it when viewing the html page over http.
Chrome doesn't (I'm not sure about other browsers) allow loading local resources on a file requested with http.
If you're using chrome, you can press ctrl+shift+j to see the console, which will show any errors. You might see something like: Not allowed to load local resource.
The solution is to change the src of the image to be relative to the html page it's on.