HTML & CSS Tutorial - Ways to code images...and how to do it well

Поделиться
HTML-код
  • Опубликовано: 27 июл 2024
  • Here's how to properly code images into your webpages without making them fuzzy on hi-res devices like the latest iPhone.
    Play with the code!!!
    codepen.io/anon/pen/wOvgde?ed...
    View the full course!!!
    • Web Development Tutori...
    There are 2 ways you'll add images to your website:
    - html background images (use this if the image is a part of the design
    - html content images (use this if the image is a part of the content)
    The method for adding html & CSS images is different for each type of image.
    ~-~~-~~~-~~-~
    Also watch: "Tailwind CSS - why CSS utility classes save so much time"
    • Tailwind CSS - why CSS...
    ~-~~-~~~-~~-~
  • ХоббиХобби

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

  • @davidrosenberger7630
    @davidrosenberger7630 5 лет назад +428

    I don't know why, but you are by far one of the easiest people to listen to and learn coding from.

    • @learncodeacademy
      @learncodeacademy  5 лет назад +103

      Wow, thanks a ton! That means a lot, because it's my #1 goal. For example: I re-recorded this video 6 times to try to get it as easy to understand as possible.

    • @davidrosenberger7630
      @davidrosenberger7630 5 лет назад +3

      @@learncodeacademy I've checked out a few different "courses" (free and paid), through various platforms and always find myself coming back here. I'm a wanderer when it comes to learning and haven't ever caught myself doing that here. Have you ever considered doing a paid course, front to back, like through Udemy?

    • @learncodeacademy
      @learncodeacademy  5 лет назад +19

      @@davidrosenberger7630 I have! I'll probably do it either this year or next...it takes a chunk of time to really knock one out well, but yes, that's something I'd like to do.

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

      @@learncodeacademy PLEASE let us know when. I'd buy it in a heart beat!!

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

      @@papleshkumar3504 the first link says its full and i want to join :(

  • @christopherdavis4136
    @christopherdavis4136 5 лет назад +92

    "And we're going to steal some images which is illegal but fun to do..." lol
    I love this series and am going through these incredible videos one by one

    • @Javic167
      @Javic167 Год назад

      It's illegal to steal them for the use on your website. If you simply code an html site that won't be online it's 100% legal.

  • @kitrodriguez992
    @kitrodriguez992 4 года назад +67

    "You may be an idiot, I just don't know that for sure"
    You my friend are a good teacher. I'm reviewing all of this shit with your help. Your little jokes like "Ill be here all week" and shit crack me up. You've earned a sub. lol

    • @stephanpaul8954
      @stephanpaul8954 3 года назад +5

      LOL i literally only went into the comments to see if anyone said anything *fistbump*

    • @user-tl7km3ee3t
      @user-tl7km3ee3t 4 месяца назад

      same here bro@@stephanpaul8954

    • @mouinmakary
      @mouinmakary 20 дней назад

      me too

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

    Props to you for updating this tutorial! I had watched the previous one, but it's great to see how the tech has changed. Thank you for your hard work.

  • @sigmiami
    @sigmiami 5 лет назад +6

    This guy has the best tutorial I’ve seen to date, vert detailed very methodical very informative- thank you

  • @BiIboSwaggins
    @BiIboSwaggins 5 лет назад +3

    This has to be one of the most satisfying things I have ever done.
    It started out looking like this website from 1999, and to be quite honest I wasn't very motivated to keep at it.
    but after watching this video I am super excited to learn more and make my own designs and stuff.
    You sir, are by far the easiest to listen to, and you make it really easy to understand this stuff!
    Thank you so much :)

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

    The next 3 videos are the best CSS vids i've seen. Impressed. Keep up the good work!!

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

    Wow, turns out the tutorial I watched 5 years ago skipped a lot of important concepts. This is much better!

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

    Amazing insight into how you go about styling the website. I've always struggled to style. A very big thank you!

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

    I have taken courses on this and have never Understood it like this before. You are Amazing! Thank You!

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

    I am following each of your tutorial on Web Dev. and practicing at the same pace. Each day a video. Thanks Will !!

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

    Awesome Video-series, you explained everything very very well so far, though I gotta admit that you were noticeably quicker and less thorough than in your last videos but one does get the gist anyways! Love the series, keep it going!!
    Would love to see more building up on what you showed us so far, like for example having the image in the header change into a different picture etc.
    for those wondering about some changed aspects, it seems like he did some changes off-camera, like the All-Caps nav points and a few minor other things, if you look closely in the video you will be able to spot the code he wrote and copy it as well if you so fancy.

  • @ehtshamshahbaz9315
    @ehtshamshahbaz9315 5 лет назад +6

    These videos are really useful even for an intermediate level web developer.
    Thank you sir.

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

    Just want to say, God bless you man, you are making this whole process of learning web devt. easy... You are really good at teaching and you are also easy to listen to... Thanks man.

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

    Thanks to you I found making Web sites so much fun. Now I am working as a web developer and I love my job. Greetings from Slovakia.

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

    First video I've watched without getting bored and MAN! It's 22mins.

  • @MoZenLen
    @MoZenLen 5 лет назад +4

    2016 I started to watch your video, now I can make my own responsive website :)

  • @obaidullahnoori8805
    @obaidullahnoori8805 4 года назад +9

    WOW, I made my first function website by just watching this series. Thank you so much! love the way you teach, straight to the point.

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

    Love your content, your helping an IT support agent decide to change his focus to Web Development.

  • @elenvibes3623
    @elenvibes3623 Год назад

    YOU ARE AWESOME (im from spain) and you, by far, are the best quality and understandable youtuber to learn. Love the serie ❣

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

    Waiting for more episodes! im learning a lot with this tutorias, hope you dont care that much about views, and care more about the people that want to learn more!!! thanks a lot, keep it up!!

  • @user-tf7te5fs2n
    @user-tf7te5fs2n 5 лет назад +17

    I like the way you explain the tutorial.
    Thanks for this video. I hope you create another video soon for new style of Web page to learn more properties

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

      I'll probably jump to some more React.js videos next, but there's a little more on this series to do!

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

    this video encourages me much to learn in webdesign lovely, thank you

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

    u have taught me so much man. Thanks :D Please continue with this series!!

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

      Awesome! Yes, still have a little more on this series.

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

    Excellent video as always! Can't wait for the responsive one next!

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

    just stumbled to this fun series while learn. man this is so entertaining.

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

    Keep these up they help so MUCH. They are easy to follow and make coding see, easy to learn.

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

    Thanks Wil, best RUclips channel to learn HTML. I'm hoping you would do a comprehensive training on building email blast using tables and inline CSS. If you offer this course online, I would purchase your training without any hesitation.

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

    You make so good content. Easy and understandable explained. Keep up with new videos and your great work! Looking forward for the next videos. 👍

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

    Thank you soo much!!! Love your tutiorials

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

    Thank you for these tutorials they are so helpful.

  • @apocprofesional3019
    @apocprofesional3019 10 месяцев назад

    Nice toturial sir! You are pretty straightforward and I can understand easily and get your point without a blank head your a nice teacher thank you.

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

    Thank you for all these. Seriously, thanks!

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

    Best tutorial ,so many pro tips and solutions!

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

    You helped me a lot with my assignment 😭 thank you so much ☺️

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

    The best ever in web development. Thank you

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

    currently addicted to watching these videos!

  • @user-mk5jg2tf9j
    @user-mk5jg2tf9j 5 лет назад +1

    Hello, please don't stop doing video!I want to learn HTML & CSS,because i want to become a it specialist/

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

    I'm not sure if I was the only one who noticed but he made a few changes to the links at the top (offscreen) here is the code to remove the underline, make the text white and transform the text to all caps:
    Add this to the styles.css:
    a {
    text-decoration: none;
    color: white;
    text-transform: uppercase;

    }

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

    So easy to understand, thank you!!

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

    tnx one of the best video i watch in creating a website header, body, footer understandable explanation tnx...

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

    Very good man.You are the best!Thank you for this!

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

    you are excellent, like David said very easy to follow.

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

    Thanks a lot for your awesome videos!!! you rock!!

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

    thanks a lot for all the help

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

    Great video! helped me alot do you have any videos on coding videos from youtube? I'm having difficulties formatting everything with css.

  • @SpeedySpee
    @SpeedySpee 4 года назад +135

    "It's not legal, but it's a great idea."

    • @oscwavcommentaccount
      @oscwavcommentaccount 4 года назад +7

      It's only illegal when you upload the site with someones pictures. But if the html is just gonna be on your computer it's completely legal.

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

      for practicing

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

      @@oscwavcommentaccount Well its like that, you have to look for a uncopyrighted picture and ask for permision to use it.

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

      😂😂😂😂

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

    Sir, Im dedicate my time coding i already know C,C++,JAVA oriented prog. and now im currently learning HTML-CSS-JS-PHP i enjoyed making a Fully Functional System in some business im just a 3rd year student in I.T i code everynight from 10pm-12pm..THANK YOU SIR FOR YOUR VIDEOS your teaching are far more better than our professor hahaha God Bless Sir I really appreciate it.

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

    Dude I've been working on Firefox OS (web-based mobile OS) for a living for years. But your way of explaining stuff makes me wanna go back a newbie and learn this all over again :D

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

      Hah thanks! Funny you say that...I actually applied to work on the Firefox OS team about 6 years ago.

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

      What's the state of that project? I heard it got shelved, but I always thought it was an amazing concept.

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

      @@learncodeacademy it initially shifted into just Smart TVs (there's a Panasonic TV with it on still being sold out there, IIRC) then into "connected devices" aka IoT stuff then it got indeed shelved.
      There's a clone of it that's being shipped in smart feature phones in India.. It's called KaiOS and I think a number of previous key staff are there..
      Even though it was never meant to compete with Android and iOS, Firefox OS lacked the proper funding among other stuff I'd rather not mention publicly :D

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

      @@NefzaouiAhmed Wow, crazy to hear the journey it went on. Yeah, I figured there were some reasons it didn't become everything it could have become.

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

    THANKS VERY MUCH VERY EASY TO UNDERSTAND AND CLEAR PRESENTATION THANKS AGAIN :)

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

    hey! Your videos are great and very easy to understand, specially for a beginner like me. I have only one question to ask, sometimes it happens so that i know what designing i want but i dont know which commands to use in css. Can you please give some suggestions on that? Thank you !

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

    I love the resize image trick for clarity, it's genius! Also thank you so much for the help. I'm almost done with the playlist, I've learned a lot! 😎

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

      What's the trick?

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

      @@vielo9775 see the video again cus clearly you did not pay enough attention. Anyways the trick is to get the image double the size of what you are actually gonna use in the website. For eg: If you want the image in the website to be of 200px, you would edit the original image to be of 400px. The reason for this is for better clarity on some screens.

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

    I love your videos! They are so easy to follow and really interesting, thank you so much!
    But I followed the steps and my images display vertically...and I don't know why. I like the way it looks though, haha!

  • @EssamYaman
    @EssamYaman Год назад

    I really like this coding idea

  • @zacharyseales3775
    @zacharyseales3775 Год назад

    Super helpful, thank you

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

    Your video on front end development is awesome...try to give tutorial on back end to completely develop a website

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

    u proved that it's common sense, not rocket science !! :)
    THANK U

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

    your voice is so clear, how do you record, what's your setup. also do you clean audio after recording.

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

    I had to make the ["background-position : center;" even for the header .logo a (stylesheet) ] because it was difficult to adjust the logo to make it look right. Does that work ? or what did i do wrong?

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

    Hey, great video.
    Quick question: if i do use an image from another website, how should i cite that its from a different source on my website so i can give them credit and they dont sue me for everything i own?

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

    Great video, I'm learning a lot! One thing, wouldn't it be better to use the img or picture tag in HTML for the logo and header photo? Does it not matter how you do it? Thanks!

  • @thesapienasset
    @thesapienasset 10 месяцев назад

    Great series! Gotta say, I’m only able to follow along cause I’m also going through freecodecamp’s web dev beginner course. Quick question : why didn’t you add an alt attribute to the “artisan bakery logo” image instead of adding text and changing its indent?

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

    Thanks sir ,helps a lot♥️

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

    Question: so I got to the point of styling the logo, but I can only put one aspect in, the red background works but when I add anything else the entering formating dies, my guess is that I left some code in from the previous videos that were deleted in the videos that is interfering with it. My best guess, anyway. Any help would be appreciated.
    header .logo a {
    background: rgb(255, 0, 43)
    width: 300px;

    }

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

    Can i explain how you got the pictures in vs? Im shown:" An error occurred while restoring view:imagePreview.previewEditor"

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

    "Fresh Baked Bread", "Home Roasted Coffee", "Goods Market?"
    This is too good... I've finally found someone who codes just like me!

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

    The images that i insert, even after completing the code, gets cut off for some reason no matter what height I adjust it to. Can someone help me out please?

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

    Why my images in the section going down not to the one line? that's the most important question for me i can also give a css code for that so they arent sided to the one line
    i hope that you understand my question. the images going down down down but i need 2 lines with the 3 photos on the single line what is problem if you help i will be you happy i also have tried to google that but no solution i have founded there.
    .features {
    text-align: center;
    display: flex;
    flex-direction: row;
    }
    .features figure img {
    border: 1px solid white;
    box-shadow: grey 0px 0px 10px;
    width: 500px;
    height: 230px;
    }
    *have solved this problem was that i havent put all of my images to the

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

    but anyway how to add images into that group of my website ? it appears on up-side only.

  • @25nasar
    @25nasar 4 года назад

    That logo you added how can I position it left for instance if I don't want it where you have placed it

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

    How does the header flex without display: flex?

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

    Love you brother!

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

    What if you wanted align the logo to the left? Please let me know. Thanks. Best vids by far....

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

    i was enjoying those technical point you are giving in this amazing video until i heard 17:16 😂🤣 thanks for this evergreen tutorial

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

    anyone explain why when i resize my image (7.30 for reference) why it doesn't fit to the diameters like his does? instead of fitting, it just cuts out the rest of the image.

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

    my logo have a black screen around it, how can i fix this.

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

    Ummmmm.... my row thingy does not work... yea I managed the captions using h4 but then... its such a long way... Sooo stuff wont align in a row... I did manage to make them aligned in a row but the freaking figcaptions wont stay beneath.. any fix?? Thank you = )

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

    How do I upload image to to the image folder?
    Do I right click or left click on the folder to be able to upload images there

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

    im really struggling with the logo class.. nothing seems to effect the logo classified text when i try to change it... and ive experimented with other classes on other parts of the webite and it was working

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

    how did you moved the navigation tags in the middle? I could not understand.. can anyone help here?

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

    the moment you set the height for the artisan bakery logo, the Home text just disappeared (4:38 - 4:50)
    How do you bring it back to the top.
    🤔

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

    When u are being taught like this you must know from Cameroon 🇨🇲 thank you alot for this sir
    Waiting for when you will start adding javascript 🙏🙏🙏🔥🔥🔥🔥

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

      Here is a set of videos that include javascript! learncode.academy/webdev

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

    Help please, my logo image doesn't show, it seems to be transparent as the link works

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

    Sir, this is really a nice video with clear explanation and tips. I am just a newbie, how can i add login here. Thank you very much in advance!!!

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

    How do you insert the pictures into Visual Code?

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

    i have problems alining photo with href's they do nt get in line properly an i rewatched playilist to this part 3 times and i tstill doesn't work please help me

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

    I want to make a form and according to what person had choosed the option will appear how to make it(bad English)

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

    can someone help me - when I add the file path to the header a, the image doesn't show up for some reason, any clues as to why??

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

    Could I protect the picture on the websites, what code i need to use?

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

    Yooo do any of you know how to shrink the src image as I tried making it smaller in photoshop but when I copy it over it still looks big

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

    Could you share the image pack in the link so that I could download and practice? Thank you!

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

    the fact that it took me two weeks lmaooo. I made mine about lions and it turned out so good.

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

    Thank you for tutorial. Unfortunately image height don't change automatically for me as you said. I can only see about half of the picture. Than I changed height from 80px to 370px and picture looks good, but then my whole header becomes very big :)

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

    great teacher ,thanks

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

    good quality tutorials

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

    How do I double the size and then shrink them down?

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

    i think this teacher is amazing

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

    Can someone help me the image doesn’t appear on the website and what is in the menu folder?

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

    when i try to put the logo in its not fittin in its size, how does it work properly? when i change the background-size then its not fitting anymore for high tech stuff isnt it?

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

    I am having a problem in which the section images are being shown horizontally and not vertically. Plz help.