Problems with loading the image into an HTML file by saving


I have a problem with my page when loading the image in my HTML file, it turns out that when I place the image, it shows me an icon with an x in the center when loading the page. I put the image I want to show in the folder where the HTML file is located. But it still does not show me the image, I understand that it is due to an error when saving the file changes, and I would like to know if you can please help me with this. Here I show the code:

<!DOCTYPE html>


	<meta charset="utf-8">

	<img src="curriculum/mi foto.jpg"/>
asked by Br_Parra009 27.08.2018 в 17:54

1 answer


While you are in local development, you can force the browser not to read the cache using one of the following meta in head :

<meta http-equiv="Expires" content="0">

<meta http-equiv="Last-Modified" content="0">

<meta http-equiv="Cache-Control" content="no-cache, mustrevalidate">

<meta http-equiv="Pragma" content="no-cache">

(You only need to place one of them)

Check that the image path is correct: Right click on the icon (which should be the image) and open it in a new tab. If you do not see your image, you should check the route and the extension.

Additional : The img tag does not need a diagonal at the end

answered by 27.08.2018 в 18:05