Crextio.com Latest Questions

Leigh Alexander
  • 0
  • 0
Explorer

Why is my image not showing on my html page?

  • 0
  • 0

I’ve been trying to run through writing codes, as I’m a beginner. I’ve noticed my images don’t show on my html page when I run it. Why is this?

Related Questions

Leave an answer

Leave an answer


2 Answers

  1. When you add images to a HTML code, you must create a path to the location in your directory structure where those files reside. This is code that tells the browser where to look for and fetch the image from. If the path to this folder and the files inside of it are incorrect, the images will not load properly because the browser will not be able to retrieve the correct files.

  2. The most common reason can be the browser can’t find it using the instructions you gave it. Here are some of the quick fixes for image display errors,
    — Avoid simple typo error
    — Avoid misspelling the image name
    — Avoid wrong extension
    — Avoid using malformed img tag