Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,158,542 members, 7,837,081 topics. Date: Wednesday, 22 May 2024 at 04:32 PM

Pls I Need Help On How To Do This On Html - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Pls I Need Help On How To Do This On Html (911 Views)

Pls I Need Help On How To Do This On Html / Free 2019 Intensive Training On Html,css, Php, Java For Beginners| Day 3 / Am Giving Out Free Ebook on HTML And CSS (2) (3) (4)

(1) (Reply) (Go Down)

Pls I Need Help On How To Do This On Html by Winningbot: 9:32am On Aug 23, 2021
Good morning, pls I don't know why the image is not showing on chrome if I run my html code.
Pls someone should help pls

Re: Pls I Need Help On How To Do This On Html by Winningbot: 9:36am On Aug 23, 2021
I started learning html last year but my laptop got bad beyond repair, I had to hustle money to buy a new one.

Now, it looks like I've forgotten most things cry, I know how to insert this picture before, but I don't know where I'm getting this wrong

1 Like

Re: Pls I Need Help On How To Do This On Html by Winningbot: 9:37am On Aug 23, 2021
And pls what's the best editor for web development, I'm currently using sublime text
Re: Pls I Need Help On How To Do This On Html by Ayo081(m): 9:47am On Aug 23, 2021
If the src is correct, you might wanna change the '/' to '\'.

For text editor, use vs code.

For more tutorials, use freecodecam.org.

1 Like

Re: Pls I Need Help On How To Do This On Html by 404Dev: 9:53am On Aug 23, 2021
Make sure the image exists in the specified path ie an image named tiger.jpg is a subfoldrr named not.

And also check the extension of the image is .jpg and not .png

5 Likes

Re: Pls I Need Help On How To Do This On Html by BigDawsNet: 11:35am On Aug 23, 2021
Winningbot:
Good morning, pls I don't know why the image is not showing on chrome if I run my html code.
Pls someone should help pls

<img src="url" alt="some_text">

Make sure you connect your image folder with your ide

Image type is important
Ur original pic may be PNG while you have jpeg in ur code
Re: Pls I Need Help On How To Do This On Html by Nobody: 11:40am On Aug 23, 2021
Winningbot:
Good morning, pls I don't know why the image is not showing on chrome if I run my html code.
Pls someone should help pls
u have a long way to go
Re: Pls I Need Help On How To Do This On Html by Nobody: 11:41am On Aug 23, 2021
Winningbot:
And pls what's the best editor for web development, I'm currently using sublime text
sublim is good n dreamweaver
Re: Pls I Need Help On How To Do This On Html by LikeAking: 11:58am On Aug 23, 2021
Winningbot:
Good morning, pls I don't know why the image is not showing on chrome if I run my html code.
Pls someone should help pls


Put the pics inside theseame folder with your html pages.

Just use tiger.jpg
Re: Pls I Need Help On How To Do This On Html by LikeAking: 12:01pm On Aug 23, 2021
Winningbot:
And pls what's the best editor for web development, I'm currently using sublime text

If you wan learn use a simple note pad.
Re: Pls I Need Help On How To Do This On Html by Thunday1005(m): 12:07pm On Aug 23, 2021
Winningbot:
Good morning, pls I don't know why the image is not showing on chrome if I run my html code.
Pls someone should help pls

Go to where the image is on your pc, then click on properties, just copy the path name direct from there then add the image name n image type
Re: Pls I Need Help On How To Do This On Html by Nobody: 5:17pm On Aug 24, 2021
Two errors.
1. Your slashes are in the wrong direction. ‘/’ is wrong change it to ‘\’.
2. A file path shouldn’t begin with a slash unless you’re trying to navigate backwards then you’ll use this ../

Solution... always create a folder for your web projects. Your HTML files should always be at the root directory. Then create another folder named images inside that web folder. All your images must be inside this folder.
Then import images into your HTML using... <img src=“images/tiger.jpg” alt=“Sometext”/>

1 Like

Re: Pls I Need Help On How To Do This On Html by airsaylongcome: 11:12am On Aug 25, 2021
Your html img tag is not pointing to the image location. Probably copied it from the Internet because it is using Linux file notation (indicated by the forward Slash) whereas you are coding in Windows which uses backslash (\) to indicate folder location. Go to the folder where you have the image, right click on it and select properties. It should show you the exact location of the image. Type that location exactly as it is replacing the /not/...

(1) (Reply)

Alx Or Zuri / Need Help On Basic Programming / I Need A Tutor In Programming!

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 21
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.