Image doesn't load on html | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

Image doesn't load on html

I want to add images to my html page, I used <img src=".PNG" alt="alt"> but it doesn't load on the page.

11th May 2024, 6:20 AM
UNO REVERSED
UNO REVERSED - avatar
5 Respostas
+ 3
UNO REVERSED While learning course understand tags with their examples. For Reference : https://www.sololearn.com/learn/o-HTML/1030/?ref=app
11th May 2024, 6:52 AM
RšŸ’ šŸ‡®šŸ‡³
RšŸ’ šŸ‡®šŸ‡³ - avatar
+ 1
You Used Incorrect Location Of Image You Should To Use A Correct Image. For Upload An Image - You Should To Upload Your Image Online. If You Want Do That Go To Blogger Create A Blog(Don't Publish It) And The Upload The Image And Go To HTML View Then Copy The Image Link And You Can Use It. If Don't Understood DM Me.
12th May 2024, 2:49 AM
JaiprakashJH
JaiprakashJH - avatar
+ 1
Ensure that your image source path is valid and use aboslute path if image is hosted on a different server. File extension used must match the file format. Lastly, ensure that the image file has the correct permissions. Hope this helpe !
12th May 2024, 5:25 AM
Nikkiverse
Nikkiverse - avatar
+ 1
I see! There are a few common reasons why your image might not be loading. Let's troubleshoot together! Here are some things to check: 1. *File path*: Make sure the file path to your image is correct. If your image is in the same folder as your HTML file, you can use a relative path like `<img src="image.png" alt="alt">`. If it's in a different folder, you'll need to specify the full path or a relative path from your HTML file. 2. *File name and extension*: Double-check that the file name and extension (e.g., .png, .jpg, .gif) match exactly. 3. *Image file size*: Ensure that the image file is not too large. Try resizing or compressing the image to reduce its file size. 4. *Image format*: Verify that your image is in a supported format (PNG, JPEG, GIF, etc.). 5. *HTML syntax*: Make sure your HTML syntax is correct. Use the following format: `<img src="[image_path]" alt="[alt_text]" />` 6. *File permissions*: If you're hosting your website on a server, ensure that the image file has the necessary permissions
12th May 2024, 5:50 AM
Precious Chisom
Precious Chisom - avatar