Ask coding questions

← Back to all posts
My image wont display
JacobMcPherson1

It's just giving me a 404 (not found error) in the console, Is there a way I can fix this?

Answered by OldWizard209 [earned 5 cycles]
View Answer
Voters
JacobMcPherson1
Comments
hotnewtop
OldWizard209

You have to put the path of only src="images/gopher.svg", because your index.html is on the same hierarchical level as the images folder so you don't need to add the path of public.

JacobMcPherson1
OldWizard209