+ 1
HOW TO ADD PIC TO HTML PAGE?
I created a photo in adobe photoshop cc and saved it as JEROMELOGO and the extension was saved as .psd. I went to add it to my page so I put the entire file location which was C:\Users\minem\OneDrive\JEROMELOGO.psd but when I put that as my <img src> it didn't do anything. Can I use that photo or is the extension invalid. or what am I doing wrong. PLEASE HELP
5 odpowiedzi
+ 7
PDF isn't a valid format.
+ 6
Are you using web server? In that case you can’t use images or other files outside your web root. And you must access them using http protocol.
And the extension is wrong like others said already.
+ 5
As mentioned by others, you need to embed the image in HTML with supported format and the most common are .jpg, .png & .gif.
Therefore you can export your .psd into any format above and put it into the same folder as your HTML, then you'll be able to display it like:-
<img src="JEROMELOGO.png" />
Hopefully it helps! 😉
+ 4
Exports the image to another valid format. Here is a list of the supported formats.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img
+ 4
Export your image as a .jpg