html Having trouble displaying images in html using img tags
Go to solution
Solved by TechSquidTV,
1 minute ago, Shammikit said:no its not in folder1 its in a different folder called web pages
Ok first thing you should do is organize your project as a real website you be. Try this
/project
- index.html
- /img
- Dell-Vostro-2.jpg
So you have a project folder with index.html inside, and another folder inside called "img" which contains our image. Then your one project folder will contain the entirety of the website. From there you can use relative paths. "/" will refer to the project folder from index.html. So "/img/Dell-Vostro-2.jpg" is your image.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now