Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

212
Views
HTML error when attempting to use image in the same folder

Let's say I have a folder Block with the following files within...

Block
   index.js
   Block.js
   Block.scss
   Block_Image.png

Within the Block.js file, I attempt to grab and display the image with...

<img src="Block_Image.png alt='Picture of block' />

Why do I get a 404 Not Found error when running it? Only the alt text appears where the image should be. I have tried using different file paths, and I get the same error every time. Thanks for the help!

about 4 years ago · Juan Pablo Isaza
3 answers
Answer question

0

Hit F12 and check if something is blocking. If not. I would try to inspect and open image src in new tab, that will help us identifying the issues with the image url.

about 4 years ago · Juan Pablo Isaza Report

0

have you tried using "Block/Block_Image.png" ? If the html is on one level up, then it will look up in that folder.

about 4 years ago · Juan Pablo Isaza Report

0

In your code it seems your forgot an ".
If you didn't, try this :

<img src="./Block_Image.png" alt='Picture of block' />
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!