Can someone explain what is wrong with my HTML picture links please? The src links seem syntactically correct and picture links in another project of mine worked yet these are not showing. What is going on here?
CodePudding user response:
The src link is relative to where the page is if youre just going to it in the browser, you can test in dev tools on your browser by changing the link, but depending on where the nascar numbers folder is relative to your 1.html you may need to do something like "../../nascar numbers/1.jpg"
CodePudding user response:
It seems that your "1a.jpg" image is in the same folder of your "1.html" file. So you should just try "1.jpg".
CodePudding user response:
The src
attribute is used to specify the URL of the source image Absolute URL: It points to another webpage. Relative URL: It points to other files of same web page.
I am not sure how your project folder is structure, for an easy link path. I would advise creating a folder that would be in the same directory for your project and name it image
by conventions, paste all the image files for your project inside it, and you may want to do something like this image/img-project.png
as src
attribute value.