Jump to content

Loading image to html


mwatson83@gmail.com

Recommended Posts

Try...

<!DOCTYPE html><html><head><meta charset="utf-8"><title>Page Title</title><style>img{ border:3px solid blue;width:800px;height:600px;}</style></head><body><a href="http://www.w3schools.com/html/html_images.asp">This is a link</a><hr/><img src="http://www.w3schools.com/html/pic_mountain.jpg" alt="pic_mountain.jpg"/> </body></html>
Link to comment
Share on other sites

To add another image you just add that line...

<img src="http://www.w3schools.com/html/html5.gif" alt="html5.gif"/>

...if these images were on your own computer in the same folder you would only need to supply the filename itself such as...

<img src="html5.gif" alt="html5.gif"/>
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
×
×
  • Create New...