Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML How to Make a Website HTML First Use HTML Elements

shreya gupta
shreya gupta
486 Points

Doubt in importing picture in html file(using intelliJ)

i am using intelliJ .i am stuck in importing pictures in html file. this is my code <!DOCTYPE html> <html lang="en"> <meta charset="utf-8"> <head>

<title>anupam shop</title>

</head> <body> <header> <a href="index.html"></a> <h1>ANUPAM CLOTH EMPORIUM</h1> <nav> <ul> <li>saarees</li> <li>suits</li> <li>lehngaas</li> </ul> </nav>

</header> <section> <ul> <li> <img src="C:\Users\shrey\Desktop\img1.jpg" alt="not available"></li> </ul> </section> <footer> <p>Ā©2016 Shreya Gupta.</p> </footer> </body> </html>

index.html

Hello There, So, You're the first person i've seen using IntelliJ for Writing Basic Html. Do One thing go to the folder where the project is inside and then put the image there after that you would be able to use it. Just Like this : <img src="whatever.jpg">

2 Answers

Gurpeer Duhra
Gurpeer Duhra
4,205 Points

Can you let us know where your html files are located. . ? and put that img file into where you html file is located. Instead of trying to locate the path in difficulty way.

That's What I Exactly Meant.

Hello There, So, You're the first person i've seen using IntelliJ for Writing Basic Html. Do One thing go to the folder where the project is inside and then put the image there after that you would be able to use it. Just Like this : <img src="whatever.jpg">

shreya gupta
shreya gupta
486 Points

yes, it worked.Thankyou!