How to Insert an Image in a Webpage (HTML / XHTML)

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
24,900
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 10, 2010

In this video we learn how to insert an image into a web page by hand, using HTML code. You can also view this lesson in written format:

http://learnwebcode.com/how-to-insert-an-image-in-xhtml/

Thanks!

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 3 dislikes

Link to this comment:

Share to:

Uploader Comments (LearnWebCode)

  • no, it did not work..i dont know what to do=/

  • @mikawahwah The file name can also be case sensitive. Also can you try adding a "/" slash right before the closing ">" symbol? That will close the element, and your browser may be getting tripped up on that.

  • Hi! Please help! I saved an image from google to my desktop and then followed your steps, but it doesn't work, all I sew is a square with an x in it. What am I doing wrong?? Help!!!!

  • @mikawahwah Can you maybe try using .jpg instead of .jpeg after the name of the file in your code? Let me know if that solves the problem.

  • My image doesn't insert, it just shows a ripped piece of paper. I've tried a lot of things like moving the image to my folder that contains my index.html but it just shows up with the same thing.  Help please? Also I am using Notepad++ and src text is red and the image text is purple. Sorry I am very new.

  • @Eman7002x Is your image a JPG, PNG, or GIF? Maybe the file extension isn't matching. I'm not sure what else could be causing the problem. Can you maybe message me the code you're using?

see all

All Comments (38)

Sign In or Sign Up now to post a comment!
  • thnx

  • I have tried your method verbatim and all I get is a blank Safari page....

    What am I doing wrong? I have checked the image suffix for .jpg and I have followed every one of your syntaxes to the letter...

  • no matter what I do I can"t get my phot to display.what is a file extension by the way.

  • it works 100% ,merci mon ami

  • YOU STOLE MY DOG

  • @Eman7002x sometimes a little difference in the actual file name and the one used in html can cause havoc.

  • You sir, deserve a cookie. This helped a ton

  • youtube.com

  • Thank you so much man!!!!!!

  • i see what the problem is.

    when i save an image i never put the .jpg extension after it.

    but now it worked!!

    thanks alot :)

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more