Aravind Busarapu Posted May 21, 2021 Share Posted May 21, 2021 Hello. This Is Aravind. While I was adding image to my HTML page, firstly i have saved all the needed mages in a folder. I was not getting the images in my web pages, i was getting the text that I was mentioning in the alt"" . The address of the image is not getting. Can you please help me to solve this problem? Link to comment Share on other sites More sharing options...
LanaVegana Posted May 22, 2021 Share Posted May 22, 2021 There are probably more professional solutions, but as long as no one else is answering this question, you can always put the image files directly in the same folder as the html files. Link to comment Share on other sites More sharing options...
niche Posted May 22, 2021 Share Posted May 22, 2021 (edited) What Lana said isn’t always practical and there’s still the question why the alt gets displayed and the src doesn’t. Please post your code and verify the the src target exists with the EXACT spelling and capitalization. EDIT: Including EXACT spelling and capitalization for the entire path Edited May 22, 2021 by niche Link to comment Share on other sites More sharing options...
dsonesuk Posted May 22, 2021 Share Posted May 22, 2021 Because the alt is a attribute that it part of img tag and is always viewable (if text description present) to the browser, the src attribute is a external file link, if the path is wrong, no image will show, but! the alt attribute text value will. right-click image and select inspect, It should show that img element, check the src has the correct path, you can right-click that img tag element within inspector window and 'edit as html' to edit the path directly if you discover an error. Once finished click outside the edit box, and it show img element with new src and if correct the image on web page. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now