How to Fix Images Not Being Displayed on a Website | Hostinger Help Center (2024)

There are many reasons why images may not be displayed on your website. First, make sure that you're viewing the latest version of your website by clearing the cache.

You can also try disabling ad blockers and other browser extensions to rule out that the issue may be happening only on your device.

If the images are still missing after clearing the cache and disabling browser extensions, check the following common reasons:

Reason

Solution

The image is not uploaded to the server

To ensure the file is uploaded, go to the file manager and check if the image file is there. If it's missing, upload it.

The path or filename is incorrect

Verify that your HTML source code has the correct path to images. Moving your website or renaming folders may cause the links to images in the code to break. You can use the inspect website elements function of your browser for this.

Also, keep in mind file names are case-sensitive: if the title of your image file is photo.jpg, but it's Photo.jpg in the source code, the image won't be displayed.

The file permissions are incorrect

The containing folder or the image file may have restricted permissions. You can set them to default values following these steps: How to Fix File Permissions

If the image is uploaded, the filename, path, and permissions are correct, but the problem persists, check for error messages that can help further identify the issue. You can look for errors either by inspecting the image on your browser, or, if it's PHP-related, by displaying PHP error messages.

If you need a developer's help, consider the options available on Fiverr 💡

Related Articles

How to Fix 500 Internal Server Error

How to Fix a 403 Forbidden Error

How to Fix the 404 Error

How to Identify and Fix Website Errors

How to Fix WordPress Plugins or Theme Errors

How to Fix Images Not Being Displayed on a Website | Hostinger Help Center (2024)

FAQs

How do I fix websites not showing pictures? ›

First, make sure that you're viewing the latest version of your website by clearing the cache. You can also try disabling ad blockers and other browser extensions to rule out that the issue may be happening only on your device. To ensure the file is uploaded, go to the file manager and check if the image file is there.

Why is the image not displaying in HTML? ›

Make sure that the file type is supported by the browser (e.g. supported types include PNG, JPEG, and GIF). Additionally, check if the filename is spelled correctly and its case-sensitivity is correct. Finally, try adding a '/' at the beginning of the src path.

What happens if the image to be displayed on the web page is not available? ›

If an image is not visible in the webpage then it's likely an issue on your end and not the web page you're visiting. Also, it may be due to browser settings or incompatibilities. It means it is not present in your directory or the filename is different. The alt attribute is used to assign a text alternative to an img.

What is the most likely reason for a picture not to display in a browser even if the correct HTML code was used? ›

There are several possible reasons why your images are not showing up on your pages as expected: The image file is not located in the same location that is specified in your IMG tag. The image does not have the same file name as specified in your IMG tag. The image file is corrupt or damaged.

How do I make an image appear on my website? ›

In order to put a simple image on a web page, we use the <img> element. This is a void element (meaning, it cannot have any child content and cannot have an end tag) that requires two attributes to be useful: src and alt . The src attribute contains a URL pointing to the image you want to embed in the page.

Why is Chrome blocking images? ›

Check JavaScript and Image Display Settings

Having JavaScript disabled in your browser settings can prevent images from loading. Likewise, blocking websites from showing images in the browser settings can contribute to the problem.

How do I make an image visible in HTML? ›

The HTML <img> tag is used to embed an image in a web page. Images are not technically inserted into a web page; images are linked to web pages. The <img> tag creates a holding space for the referenced image. The <img> tag is empty, it contains attributes only, and does not have a closing tag.

How to get an image to show up in HTML? ›

How to insert an image with HTML
  1. Upload your image. This can be accomplished with an image hosting service, an FTP service or a blog-hosting service. ...
  2. Open your HTML doc. ...
  3. Copy and paste your image URL into an IMG tag, add a SRC to it. ...
  4. Add alt attribute and finishing touches.
Dec 23, 2019

How to align an image in HTML to the center? ›

To center an image in HTML, you can use the <img> tag and add the "align" attribute with the value "center". This will center the image horizontally within its parent element. You can also use CSS to center the image by setting the "display" property to "block" and using the "margin" property with a value of "auto".

Why can't I upload an image to a website? ›

Try on a different browser (Chrome, Firefox, Edge, Safari, IE, Opera, etc). Sometimes it can be browser specific. Try in a private window in your browser of choice (e.g. Chrome's Incognito mode, or Firefox's Private Window). Sometimes we find that certain extensions can affect the upload option and create errors.

What tells the browser what to display? ›

HyperText Markup Language (HTML) is the set of markup symbols or codes inserted into a file intended for display on the Internet. The markup tells web browsers how to display a web page's words and images.

Why do some web pages not display correctly in Chrome? ›

These problems are often caused by your browser calling up old information from your cache or cookie folder. Clearing them usually solves the problem.

Which attribute will come into action if your image is not displayed on the browser? ›

The Src Attribute

This is the most important attribute. It specifies the path to the image. Browsers can't find and display the image without its source path. And the source can be either an absolute or a relative URL.

How do I fix pictures not showing up in Safari? ›

If you don't see images on a webpage in Safari on Mac
  1. In the Safari app on your Mac, choose View > Reload Page, or click the Reload button at the right end of the Smart Search field.
  2. Try a different website. ...
  3. If there's a Develop menu in the menu bar, check it to see if images are disabled.

Why are pictures not loading on websites Internet Explorer? ›

You can also try refreshing a page (refresh or F5). You can verify that Internet Explorer is set up to show images by going to Tool, Internet Options, clicking the advanced tab, and under Multimedia to ensure Show Pictures is checked. Make sure you have the latest updates for Internet Explorer from Windows Update.

Why are images not showing up on Google search? ›

Check Your Safe Search Setting

Your search settings may be preventing you from seeing pictures when searching with Google. The company's "SafeSearch" option filters what images you see when you enter a search term. This can be useful if children are using the computer or if you're at work.

Top Articles
Latest Posts
Article information

Author: Nicola Considine CPA

Last Updated:

Views: 5547

Rating: 4.9 / 5 (49 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Nicola Considine CPA

Birthday: 1993-02-26

Address: 3809 Clinton Inlet, East Aleisha, UT 46318-2392

Phone: +2681424145499

Job: Government Technician

Hobby: Calligraphy, Lego building, Worldbuilding, Shooting, Bird watching, Shopping, Cooking

Introduction: My name is Nicola Considine CPA, I am a determined, witty, powerful, brainy, open, smiling, proud person who loves writing and wants to share my knowledge and understanding with you.