Jump to content

Images


jlgoinggreen
 Share

Recommended Posts

Hi,I am new to HTML and taking the tutorial on this site. For some reason I can not get the images to come out. Can someone please help me. This is what I am putting in notebook then saving to HTML: <!DOCTYPE html> <html> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> <a href="http://www.htmlandcssbook.com/">This is a link</a> <p>This is a paragraph.</p> <hr> <p>This is a paragraph.</p> <hr> <p>This is a paragraph.</p> <p>This is<br>a paragraph <br> with line breaks</p> <img src="images/cf2.png" alt="sewing" /> </body> </html>

Link to comment
Share on other sites

So this is your html file for example index.html

<html><body><h1>My First Heading</h1><p>My first paragraph.</p><a href="http://www.htmlandcssbook.com/">This is a link</a><p>This is a paragraph.</p><hr><p>This is a paragraph.</p><hr><p>This is a paragraph.</p><p>This is<br>a paragraph<br> with line breaks</p><img src="images/cf2.png" alt="sewing" /></body></html>

So you have to link it like this [FOLDER WHERE IS YOUR HTML FILE]/images/ of your html file

index.htmlimages/cf2.png // This means its in images folder

Edited by Mudsaf
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...