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

Поделиться
HTML-код
  • Опубликовано: 20 окт 2024
  • Join my premium 2024 bootcamp here learnwebcode.t...
    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: learnwebcode.co...
    Sign up for my newsletter to receive periodic webDev tips, tricks, resources and coupons. Join the list at learnwebcode.com/
    Follow LearnWebCode on Twitter for resources and updates:
    / learnwebcode

Комментарии • 875

  • @dyslexiclihgt8435
    @dyslexiclihgt8435 3 года назад +268

    -Straight to the point
    -10 years ago
    -under 5 mins
    Thank you

  • @sip3716
    @sip3716 4 года назад +950

    Bruh I'm here 10 fricking years later just coz i didn't properly listen in class.

  • @arctobyte6756
    @arctobyte6756 4 года назад +398

    when you realize your watching something from the stone age

  • @Soner_Dev
    @Soner_Dev 3 года назад +46

    You’re awesome :) !
    Even 10 years later you are still saving lives.

  • @NizarNoor
    @NizarNoor 3 года назад +69

    This just got recommended to me today for some reason

  • @dandy_handy_mandy
    @dandy_handy_mandy Год назад +4

    This just helped me SOOOOOO MUCH~!!! I don't know why this was such a block before but the way you went with the entire flow showed me the importance of file placement!!!!!!!!!!! THANK YOU!!!!!!!!!!

  • @LearnWebCode
    @LearnWebCode  12 лет назад +6

    You're very welcome! I'm glad the video could help you out.

    • @milosadamovic9498
      @milosadamovic9498 5 лет назад

      ITS CORUPTEEDDD

    • @Emmmmmmmm111
      @Emmmmmmmm111 2 года назад

      My files were corrupted for some reason. Is there a way I can fix this?

  • @Yizak
    @Yizak 9 лет назад +129

    Simple tutorial but exactly what I needed to know - thank you!

    • @p.y1121
      @p.y1121 3 года назад +3

      The thing you want to know is simple so it's obvious that the tutorial will be simple.

    • @soma4320
      @soma4320 2 года назад +1

      hehe shoegaze

    • @snoopysnoopy456
      @snoopysnoopy456 2 года назад

      mbv is great

  • @Lazuline98
    @Lazuline98 3 года назад +12

    You really helped me out man, so simple and old, yet not out of date, no matter how hard I tried listening at school it was just too hard, but with this I could do it first try, it's crazy, regardless, thank you once more

  • @lonely1x.445
    @lonely1x.445 2 года назад +7

    12 years later, still works, i love you my bro and hope the both sides of your pillow are cold

  • @Turco949
    @Turco949 4 года назад +8

    Oldies but goodies. The only coding that seemed easy to learn and apply was HTML even back in 2003 when I had zero programming knowledge.
    Side tip, to align the image in the center of the browser page (my preferred method), add: (at the beginning of the line and) (at the very end ). So, it looks something like this:

  • @dailyrisktaker6211
    @dailyrisktaker6211 7 месяцев назад +1

    YAY, thank you so MUCH!! Mine didn't work at first until I realized I needed to put Images/satellite.jpg as I have my image stored in a folder.

  • @nipunsingh7169
    @nipunsingh7169 4 года назад +130

    *me when I successfully add an image in the first try*
    me-
    (meme man) progromar

  • @dinkayouthcouncildyc4805
    @dinkayouthcouncildyc4805 10 лет назад +19

    I have trouble with inserting an image but thanks to this video.
    Keep uploading more of this sort of videos to help others, friend!

  • @The_quiet_kid63
    @The_quiet_kid63 5 месяцев назад

    I like how straight forward and to the point the video was, it saved countless hours of pain and suffering, anyways, hope you're doing well.
    Great work : )

  • @LearnWebCode
    @LearnWebCode  13 лет назад +15

    @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.

    • @LogologicsNl
      @LogologicsNl 3 года назад

      Yes, I was struggling with getting the image ( in the same folder as my index.html file) showing up too. When I used a complete link to an actual published image on the web, no problem, but not when in a folder on my pc. Only when I added the "/" right before the closing ">" symbol it finally showed up.
      Thanks, your teaching skills are very good!

  • @kylasamia2967
    @kylasamia2967 8 лет назад +137

    I watched many videos and all the steps are just the same but none of them work. When I try it, a box with a cross (x) will appear. Help me pls.

    • @Matthew-cp1zh
      @Matthew-cp1zh 6 лет назад +6

      Alyssa Samia had the same prob. But the new RUclips channel Rhymbil helped.

    • @ohwhatworld5851
      @ohwhatworld5851 6 лет назад +9

      Get rid of the / at the end before the >
      I was having the same issue until I got rid of that.

    • @jbtech9777
      @jbtech9777 6 лет назад +1

      Same

    • @jbtech9777
      @jbtech9777 6 лет назад +8

      Chris Churchill that did not work for me

    • @mohakgarg1074
      @mohakgarg1074 6 лет назад +1

      Same

  • @havupham1286
    @havupham1286 4 года назад +2

    10 years later, your video is still working, sir. Thank you

  • @springsmovies
    @springsmovies 2 года назад +4

    Simple, precise, direct to the point. Thankyou

  • @draxu2107
    @draxu2107 2 года назад

    and 12 years ago this man made a legendary vid that helped me in grade 9.. Thanks bro!

  • @NinjaEntity
    @NinjaEntity 2 года назад

    even after 11 years, this video is still helping people, thanks for doing this!

  • @dominiquegayot953
    @dominiquegayot953 3 года назад +4

    when i tell you your the only video that has helped me with this omgggg thank you soo much

  • @PixelPaperDesigns
    @PixelPaperDesigns 4 года назад +2

    OMG!! I've been working on this one issue for over a week and finally stumbled on this video and IT WORKED. I'm so thankful and grateful for your help. I knew it had to be in the same folder and I assumed it was since I was doing evrything that everyone else suggested I do. I'm sooo happy. THANK YOU, GOD BLESS YOU 🙌🏾🙌🏾🙌🏾🙏🏾

  • @onepiecefandom786
    @onepiecefandom786 Месяц назад

    14 years old tech still works thank u

  • @Ice-ps9yo
    @Ice-ps9yo 2 года назад +1

    Whoa this actually saved me a load of time I have been trying to figure it out for hours

  • @rknokh6434
    @rknokh6434 2 года назад

    I just wanted to say thank you for making this video it helped me a lot after 12 years

  • @Xerace22
    @Xerace22 5 лет назад +5

    thanks so much I just started learning and this video finally taught me what I was missing

  • @kitsune6398
    @kitsune6398 3 года назад

    It's so good to see that an 11 years old channel is still running strongly

  • @innovativeideas442
    @innovativeideas442 3 года назад

    I am watching in November 2020, See the Difference between latest videos and these videos. Your are born genius 🤩

  • @ryanlogan538
    @ryanlogan538 9 лет назад

    For everybody having problems even though they're positive their code is correct, try using notepad ++, worked like a charm

  • @monethprivado6004
    @monethprivado6004 4 года назад

    I've watched so many videos on this topic and yours is the only one that worked! Thanks so much

  • @flockem485
    @flockem485 4 года назад

    thank you I tried a lot of other videos from other channels and it never worked.This video actually helped me put an image to my html thank you

  • @WisdomPrevails369
    @WisdomPrevails369 3 месяца назад

    such good vibes and nostalgia, chill times

  • @kattoOrSmthxD
    @kattoOrSmthxD 2 года назад

    This guy is a master at tutorials.

  • @mathewsmith733
    @mathewsmith733 7 лет назад +7

    Thanks! I love your simple style of editing, teaching, and awesomeness.

  • @ryan8717
    @ryan8717 11 лет назад

    Just doing my Web development project and this has helped me soo much so I just want to say Thank You alot! you have helped in parts what ive forgotten.

  • @skr0907
    @skr0907 4 года назад

    Bro you are literally the best guy ever

  • @thebasementdrummer6909
    @thebasementdrummer6909 3 года назад

    THANK YOU SO SO MUCH, I COULDNT FIND ANY ANSWERS AND YOU JUST SAVE PROBABLY MY ENTIRE JOB MAN, TYSM

  • @meenamahendrapal1870
    @meenamahendrapal1870 3 года назад +1

    hey i did the same thing but the problem is i get the image but i cant see the image i get only the square box dude ...... plsss help me out ...

  • @navedhasan4632
    @navedhasan4632 3 года назад +3

    Videos 11 years ago : *getting straight to the content*
    Videos now : *cringy 30sec intro* - *drop a like in the next few seconds...* - *90% of you watching my videos aren't subscribed* - *realising that I got clickbaited*

  • @sandeesuarez1130
    @sandeesuarez1130 7 лет назад +1

    You sound just fine. Thanks for explaining this. You did better than my professor! Ignore the trolls

  • @savant1177
    @savant1177 10 лет назад +3

    Nice tutorial, its clear and concise. good work.

  • @camovinem
    @camovinem 2 года назад +2

    thanks man, still relevant 12 years on lol

  • @muhammedtayyabkhan9917
    @muhammedtayyabkhan9917 4 года назад +8

    wow watching this after 10 years, when i need help in college assignment .

  • @DerekPK
    @DerekPK 4 года назад

    Thank you so much. I watched different videos but they didn't work but when I watched this video it worked.

  • @nathanealm.5062
    @nathanealm.5062 5 лет назад

    Tried several different way of programming a photo in. Many Thanks to this video!

  • @Phyreuben1
    @Phyreuben1 2 года назад +1

    Thanks man, a very simple tutorial, not like those tutorials who make their videos really confusing.

  • @SINNER460
    @SINNER460 Год назад +1

    Wow....super simple...Thank you.

  • @dearthanusdiary._
    @dearthanusdiary._ 4 года назад

    I was really struggling to do this.....but finally nowww im able to....i think i saw this video more than 5 times

  • @janeasam786
    @janeasam786 6 лет назад

    I appreciate this.... I have no knowledge in programming. .. but your tutorials are so helpful. .. thank you. .. big time thanks

  • @maylmao_4765
    @maylmao_4765 2 года назад

    OMG THANK YOU SM!!!!! its so cool im watching a 12year video and it still works :D

  • @The_Study_Bug
    @The_Study_Bug 3 года назад

    I was 4 years old when this man made this vid!

  • @AshleysLand
    @AshleysLand 5 лет назад +1

    Thank you, short and straight to the point. thx a lot

  • @andreim.943
    @andreim.943 5 лет назад +151

    who watching 2019 ?
    Thx for Like, have a good day

  • @sidfox5744
    @sidfox5744 2 года назад

    thank you so much, i was really struggling to learn this for my computing exam and you helped so much

  • @Swaggerguy2435
    @Swaggerguy2435 7 лет назад

    yay,this helped me a lot as because in technology,we are going to make our own website and it is going to be finished by this friday.

  • @TheSuncam
    @TheSuncam 10 лет назад +6

    broken image solution- save your image with out file extension .jpg in the folder and remove /> and just put closing bracket >. its because Most HTML5 elements are not self-closing, but many elements do not require an end tag.. try below example:

    • @tonitoni75
      @tonitoni75 10 лет назад

      solved the problem ;)

    • @morelife9356
      @morelife9356 7 лет назад

      TheSuncam
      Thanks It worked✔✔👍

  • @_chemin_de_foi
    @_chemin_de_foi 2 года назад

    Thanks for this amazing tutorial. At the time you posted this video, I was only 8 y/o😆. Now this video approached me as a life saver

  • @mcalislr
    @mcalislr 3 года назад +3

    Great job, finally something that can be followed and understood. Thank you!

  • @asekuro1
    @asekuro1 13 лет назад

    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 :)

  • @Senator_weeb
    @Senator_weeb 9 месяцев назад

    13 years old content and still gold

  • @Original6a6y
    @Original6a6y 3 года назад +3

    "Thats today lesson thank you very much "
    No no thank you sir !!🤠

  • @derederesan_5539
    @derederesan_5539 3 года назад

    tysm! This helped me with my computer science homework!

  • @heikazukazuhei
    @heikazukazuhei 7 месяцев назад

    14 years late but this was super helpful, thanks :)

  • @shauryasahniya
    @shauryasahniya 2 года назад

    i was just 1 yr old when guys like you were creating web pages :)

  • @tequishamcdearmon9152
    @tequishamcdearmon9152 3 года назад

    I'm trying this for my class assignment...thank you

  • @GB-bq3qy
    @GB-bq3qy 9 лет назад +3

    Thank you so much for this simple, quick, and easy to follow video! This is just what I was looking for!

    • @DIOOVERHEAVEN
      @DIOOVERHEAVEN 4 года назад +1

      @GB hey how are you now in life after 5 years lol

    • @Lazuline98
      @Lazuline98 3 года назад

      Yeah I'd honestly like to know as well

    • @ezraora4549
      @ezraora4549 2 года назад

      same

  • @johnsamuel5101
    @johnsamuel5101 Месяц назад +1

    Now I am here after 14 fricking year...😮.. thank you

  • @brownkalab0w237
    @brownkalab0w237 3 года назад

    Sir I just wanna say THANK YOU VER MUCH.

  • @TimeLords910
    @TimeLords910 5 лет назад +22

    i need help when ever i add a image to my webpage it brings up a blank image sign

    • @btoao
      @btoao 4 года назад

      i have that to

    • @totachava6235
      @totachava6235 4 года назад +5

      what yo need to do is download the image from google and paste it in the same file that your html file and just paste de src

    • @otakuzero4714
      @otakuzero4714 4 года назад

      @@totachava6235 Thank you so much it worked for me.

    • @totachava6235
      @totachava6235 4 года назад

      otaku zero no problem

    • @totachava6235
      @totachava6235 4 года назад

      @otaku zero

  • @nemphenimasindy
    @nemphenimasindy 2 года назад

    Straight to the point this helped me a lot

  • @manishameena4257
    @manishameena4257 4 года назад

    Thnq soooooooo much.....100 try krne finally aaj hua thnq so much

  • @vivlodia
    @vivlodia 3 года назад +2

    thank you! also the old version is so aesthetic

  • @idfkhaha6234
    @idfkhaha6234 9 лет назад +89

    that dog is really funny.

  • @Teheolouch69
    @Teheolouch69 13 лет назад +1

    thanks man...your video helps me a lot

  • @shahlanaz7799
    @shahlanaz7799 4 года назад

    Awsm video ....i learnt it so easily in just few minutes...wow ..nice..keep going!

  • @suryashmalviya
    @suryashmalviya 6 лет назад

    Thank you very much i was facing the problem of not able to display the image in the HTML since last 1 or 2 years, which was fixed after watching your video.
    THANK YOU

  • @finangurung7314
    @finangurung7314 8 лет назад

    thx because of you i completed my homework

  • @rofahad9873
    @rofahad9873 8 лет назад

    YOU ARE HONESTLY A LIFE SAVER!

  • @KekyGG
    @KekyGG 4 года назад +1

    Hey, for the people who it's not working (me😅) I got how to do it, just do what I say.
    just open the folder with the image and restore it down (click the to squares next to the close icon) if it takes up ur whole screen then open google and drag the image on to a new tab (drag it all the way up) and copy the URL (just right-click the image and click "copy image address" ) and just paste it and don't put the slash in the end

  • @marvinnoel7036
    @marvinnoel7036 3 года назад

    Thankyou, i'm having difficulty how to add img link in HTML, this helps a lot.

  • @abbeysammy
    @abbeysammy 4 года назад +1

    Thank you, this video helped with my coursework.

  • @mrsmeldel07
    @mrsmeldel07 10 лет назад +2

    Thank you so much for keeping it simple I was stuck on a homework assignment and I was finally able to complete it because of this video THANKS

  • @jpimmy6569
    @jpimmy6569 5 лет назад +2

    Thanks a lot.💕💕💕💕 Because I was unable to insert image in my web page. My tutor is always busy in his official work.

  • @LearnWebCode
    @LearnWebCode  14 лет назад +1

    @xXxRadicalDesignsxXx If you want to use an image that is on the internet you include the full web address URL of the image file in the SRC attribute.
    If you use an image that is already online, than yes, everyone else can view it. If you are using images from your PC, then you'll need to upload your entire site folder to a server using an FTP program.
    I can make a new video to answer more questions if you share them. I took a web class as a junior :)

  • @gsantandertiarav.9480
    @gsantandertiarav.9480 2 года назад

    almost 12 years ago but works great
    thanks!

  • @WiseFatOwl
    @WiseFatOwl 6 лет назад

    maybe this is 2018....still you deserve a like.

  • @Gabby-oq2sb
    @Gabby-oq2sb 5 лет назад +1

    I really like the way you teach sort and sweet :)

  • @luisamaehernandez808
    @luisamaehernandez808 2 года назад

    Should the image be in the same folder as my .html file? Also, is it only .jpeg that is acceptable or can i use .png as well?

  • @neethurajeev879
    @neethurajeev879 Месяц назад

    Hi ur awsome as ur getting me 10marks in my csc classes 😊

  • @pepperoni_k-pop6112
    @pepperoni_k-pop6112 2 года назад

    Thank you so much sir! this helped me so much in class!!

  • @Dikhads
    @Dikhads 5 лет назад

    thank you for helping me with my school project... you just saved my ass man

  • @AUDREYCLOO
    @AUDREYCLOO 10 лет назад

    I watched about 3-4 other videos before finding this one. Great quality and to the point, easy to follow and answered all my questions. For a novice/non technical person this was great!

    • @NawkGamers
      @NawkGamers 9 лет назад +1

      Audrey Loo UR COMMENT IS USLESS U FRAKIN NUB

    • @DIOOVERHEAVEN
      @DIOOVERHEAVEN 4 года назад

      @@NawkGamers hey how cringy do you think ur comment was next that your getting notified of this 5 years later lel
      Also I'm not spreading hate I am just intrigued to see how much people have changed over the years

  • @sharonjones3091
    @sharonjones3091 10 лет назад +4

    Hi could you please tell me if I have typed something wrong
    Sign Up

    • @davisthomson2557
      @davisthomson2557 9 лет назад

      sharon jones nope. But it all depends if your image has been sourced properly.

    • @mohdyusuf5138
      @mohdyusuf5138 4 года назад

      You don't need "/" Tag at last img has no closing tag!

  • @Ashanassi
    @Ashanassi 10 лет назад

    Your video helped me to solve my problem. Thank you !

    • @florishuisman8523
      @florishuisman8523 10 лет назад

      SO MUCH MOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOMS!!!!!

  • @stevevill303
    @stevevill303 2 года назад

    today's date is 1/27/2022 and this 12 year old video was more helpful than some other new videos. do you offer paid courses?

  • @angeliczodiac
    @angeliczodiac 10 лет назад +2

    Good job. Quick and simple. :)

  • @ashleyboykin7777
    @ashleyboykin7777 3 года назад

    Done! Thanks :) no need for those long confusing blogs I was referencing. W3 didn't help either. Thanks! :) Oldie but goodie!

  • @ReddayToHaveFun
    @ReddayToHaveFun 9 лет назад

    What software are you using to record your old videos?

  • @noplak4574
    @noplak4574 3 года назад +1

    Got about 3 hours to turn this project in, thanks