mwatson83@gmail.com Posted May 4, 2015 Share Posted May 4, 2015 I am new to coding.I am having trouble loading images.Try it yourself produces the right size box but with a tiny image in the corner. Link to comment Share on other sites More sharing options...
justsomeguy Posted May 4, 2015 Share Posted May 4, 2015 Do you have an example of the code? Is the image actually that small? Link to comment Share on other sites More sharing options...
mwatson83@gmail.com Posted May 5, 2015 Author Share Posted May 5, 2015 !DOCTYPE html> <html> <title>Page Title</title> <body> <a href="http://www.w3schools.com"> This is a link"</a> <img src="w3schools.jpg" width="104" height="142"> </body> </html> This is the result with a tiny image in the top left hand corner.I copied this from the result and it has not shown the small image.Any ideas? Link to comment Share on other sites More sharing options...
davej Posted May 5, 2015 Share Posted May 5, 2015 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 More sharing options...
mwatson83@gmail.com Posted May 6, 2015 Author Share Posted May 6, 2015 Thanks,that displays the mountain picture.Do I need the extra code for each picture that I wish to load or can I just add a new Hereford and img Sri for each picture in the body.Thanks again for your help Link to comment Share on other sites More sharing options...
davej Posted May 6, 2015 Share Posted May 6, 2015 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 More sharing options...
mwatson83@gmail.com Posted May 6, 2015 Author Share Posted May 6, 2015 Thanks again for your prompt replies. Link to comment Share on other sites More sharing options...
Recommended Posts
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