Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

215
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar

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 Denunciar

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda