16: How to Create HTML5 Videos and Embed Videos | Learn HTML and CSS | Full Course For Beginners

Поділитися
Вставка
  • Опубліковано 20 вер 2024

КОМЕНТАРІ • 248

  • @Dani_Krossing
    @Dani_Krossing  Рік тому

    NEW UPDATED 2023 COURSE AVAILABLE! 🙂
    You can find it here: ua-cam.com/video/v8jDnBYc0bs/v-deo.html&ab_channel=DaniKrossing

  • @Racools
    @Racools 4 роки тому +118

    i think there should be a separate video explicitly on padding, margins, pixels, percent, and positioning.

  • @furukh4564
    @furukh4564 5 років тому +34

    Embedding a video online - 8:00

  • @bobbychicano
    @bobbychicano 4 роки тому +14

    Thank you for taking the time to create this lesson.

  • @kyrinbetts
    @kyrinbetts 4 роки тому +10

    For anyone new, a wayyy simpler way to change embed size is to set its container's height, then use
    {
    height: inherit;
    }
    This sets the 's height to that of its parent element.

    • @mareknovak1147
      @mareknovak1147 2 роки тому

      thank you man. also, I have a question as you seem to understand HTML well. When I´ve got multiple tags with different classes, how does each know its ending tag, when they are not distinguished in any way? Thank you in advance

    • @kyrinbetts
      @kyrinbetts 2 роки тому

      @@mareknovak1147 I think I understand what you're saying but it does it based on nesting.
      Let's say you have one div inside another div. The innermost divs are seen as together, because it's nested inside the other.

  • @sandygeddry724
    @sandygeddry724 5 років тому +4

    This information is very helpful. I think that UA-cam has changed the options you are allowed to control when embedding a video. There is no option to turn off suggested videos when the video finishes. Do you have a way to do this with some coding? It's very annoying to have suggestions pop up on a web page when the video ends. Thank you.

  • @DLiberator78
    @DLiberator78 6 років тому +8

    Another great tutorial. Many thanks. This was really helpful as inserting videos into websites can be tricky. I am happy to hear that your next video is going to be on responsive design as I have some questions about using absolute values in sizing by pixels as opposed to sizing by percentage.

  • @IAmSolomon
    @IAmSolomon 6 років тому +1

    Awesome video, but just a heads up for anyone using bootstrap you can use: class="embed-responsive-item" to make your video 100% responsive. Here is an example below:

  • @deshantdevkota2563
    @deshantdevkota2563 5 років тому +1

    been watching for a couple days really simple for beginners

  • @sktech2001
    @sktech2001 4 роки тому

    i like your practical oriented approach and it will surely give confident to build professional website . thank you

  • @axelcarvalho2661
    @axelcarvalho2661 5 років тому +3

    Wow! Great explanation. Thank you.

  • @MyRandomnessStuff
    @MyRandomnessStuff 5 років тому +4

    big up man this video helped me out in 2019

  • @eligoldstone3753
    @eligoldstone3753 4 роки тому +2

    How would the code look if I wanted to play multiple videos from files on my computer. Specifically, if I had a series of videos that I wanted to play one after the other, and endlessly loop.

  • @coursdedessin-artacademiep927
    @coursdedessin-artacademiep927 6 років тому +3

    Thanks man, really helped my site.

  • @ca4design
    @ca4design 3 роки тому

    Thanks for this tutorial. All works great except in when viewing with Safari browser. Are there any fixes for this?

  • @ulysse8182
    @ulysse8182 5 років тому +2

    I really enjoy learning with your video, thank you for your work!

  • @ilya8864
    @ilya8864 4 роки тому +2

    I’d like to know what happens if I change “box-sizing“ of the videowrapper

  • @cwang9945
    @cwang9945 3 роки тому

    Thanks a lot! Very clear explanation.

  • @STUPIDYOUTUBE_HIDINGMSGS
    @STUPIDYOUTUBE_HIDINGMSGS 4 роки тому +1

    My problem with this is I cannot use position: relative to the video wrapper, because my header menu is already set to relative to avoid my dropdown submenu from pushing the contents in the body.
    I set my wrapper to have a fix height and width, and then set the iFrame height and width to both have 100%, but it's not responsive like the one you have.

  • @chrinamint
    @chrinamint 8 місяців тому

    My browser is supposedly the latest one, but when I embed my video (an mp4) on my site (using the root folder on the site) only the audio plays, not the video. So then I wanted to make it use vlc player to play it because any video type should play that way...but can't quite get it right.

  • @sujitgupta7004
    @sujitgupta7004 4 роки тому

    Pepole like u r really helping others learns....♥️

  • @MrScoopss
    @MrScoopss 2 роки тому

    The most useful lesson I learned from watching the video called “How to Create HTML5 Videos and Embed Videos” on “UA-cam,” is how to embed in a video on my site in the root folder. You can insert them from a website or you can have a link from a site that you have uploaded your own video. It is easy to use your own video you upload on UA-cam or a diffent location because it will use less space and you will not need to worry about using your own hosted website.

  • @nandapandey8229
    @nandapandey8229 3 роки тому

    thanks for teaching me how to embeld a video in my own web site, have a nice day

  • @clone_nk
    @clone_nk 5 років тому +1

    why you used 1000px instead of max-width 960px width 96% inside class wrapper ?

  • @azarmedia
    @azarmedia 2 роки тому

    Thanks man it was very helpful.

  • @earthmounds7583
    @earthmounds7583 5 років тому +1

    Why does the bottom padding of the videowrapper determine the height of div, and what does the 25 px top padding do?

    • @sanjaz6908
      @sanjaz6908 3 роки тому

      I'm wondering this too. And why is height 0px?

  • @westbankstudios9529
    @westbankstudios9529 3 роки тому

    Best Video Dani it helped me out greatly thanks!

  • @27yungcash
    @27yungcash 5 років тому +4

    Hello! Your tutorials have been great so far. I have learnt a lot. However, the video integrated fine but the sound isn't coming out. How do I correct this please?

  • @donalpaccio4233
    @donalpaccio4233 2 роки тому

    Thank you for your video! It was a much help!

  • @TheGamingBeehive
    @TheGamingBeehive 3 роки тому

    Thank you very much. I needed this. However, this presented an issue. There was too much space beneath the video. The way I solved it was by putting in videowrapper and the margin-bottom - (minus) whatever pixels I need. Worked like a charm. Thank you once more for the tutorial!

  • @RichardHema
    @RichardHema 6 років тому +1

    Thank you, appreciate your sharing, awesome tutorial and very well explained.

  • @Ellectronicservices
    @Ellectronicservices 4 роки тому

    thank you so much sir Danial.I am having some problems with setting the width and height of video.no matter what I do the width does not change.But I know I will find the solution shortly.thanks again.

  • @divyabharti1561
    @divyabharti1561 4 роки тому

    Thanks for your video, it's help me lot, I was stuck at video input...😊

  • @rahulmudupurigeek1994
    @rahulmudupurigeek1994 5 років тому +2

    @mmtuts how did you able to get that padding values ??

  • @jandras1
    @jandras1 3 роки тому

    Top notch tutorial. Thank you.

  • @gopinath7172
    @gopinath7172 4 роки тому

    Super bro... Its worked and quite responsive too.

  • @michaeldanso3780
    @michaeldanso3780 3 роки тому

    In fact l love your videos. Thanks so much

  • @konnilol4
    @konnilol4 3 роки тому +7

    "We had to use something called Flash"
    Um... About that...
    I guess we would have a problem with that nowadays... :D

  • @tomdavid6916
    @tomdavid6916 Рік тому +1

    Can I use a video as a background using code?

  • @leonradonjanin9479
    @leonradonjanin9479 5 років тому +1

    How do we use the embed tag and when should we use it instead of ?

  • @holio1009
    @holio1009 2 роки тому

    how i can redirect my embed youtube video to youtube app on mobile

  • @jessephiri7834
    @jessephiri7834 2 роки тому

    bro this is 2022 l wonder if any changes of embing a UA-cam video on websites have changed to a much easier form if so can you do a video on that.
    Thank you

  • @hector_sh3861
    @hector_sh3861 2 роки тому

    Thanks a lot my bro, very helpful for me. New subs,

  • @milliconsolutions5377
    @milliconsolutions5377 3 роки тому

    Thanks man. This was a well-explained video.

  • @vaylx2253
    @vaylx2253 3 роки тому

    Great job mate, thanks.

  • @rajatvaish1797
    @rajatvaish1797 4 роки тому +1

    Hey man, following your video tutorial to learn HTML & CSS. Love them and they are really helping me understand it.
    Have a doubt:
    Firstly, why did you put height=0px and isn't padding used to create that idle space where nothing can be put? Because here you've put the whole youtube video in that box.

    • @kiaabdi6103
      @kiaabdi6103 4 роки тому

      It's because of the position:absolute, and of course the relative position of the parent tag, when you set the position to absolute the height of the parent tag does not matter and the only important thing is the actual size of the parent tag that has the relative position (even if it's created by padding and not with width and height)

  • @calibr0636
    @calibr0636 5 років тому

    Thank you man, for the video, I just converted a random UA-cam video to mp4 and embedded it in the coding. And now I think I can just open the website and listen to music without WiFi.

    • @bernardmccarthy1438
      @bernardmccarthy1438 5 років тому

      u are cancer smart sir

    • @psychicguide8900
      @psychicguide8900 4 роки тому

      The video wont play when you go offline lol

    • @elliottgreenhill1
      @elliottgreenhill1 4 роки тому

      @@psychicguide8900 if he converted it so MP4 though, he has saved on his comps no? so wouldnt need wifi, I may be wrong

  • @khoatran6722
    @khoatran6722 5 років тому

    Awesome lesson and very easy to follow along

  • @selpink579
    @selpink579 4 роки тому

    THANK YOU SO MUCH, YOU HELPED ME WITH MY COURSE WORK 🥺🤩🤩🤩🤩🤩🤩🤩

  • @taspepi3401
    @taspepi3401 5 років тому

    Great video mate... the most clear and well explained tutorial on youtube

  • @LukGamesCZ-rm3db
    @LukGamesCZ-rm3db Рік тому

    Hello, how can I rewind by 1 second and via shortcut key with arrows but make it not mp4 and not via youtube but make it when I add a link?

  • @Goatress
    @Goatress 3 роки тому

    Thx, your videos are awesome!

  • @Sweet50
    @Sweet50 4 роки тому

    Thank you so much. You helped me a lot

  • @frankie_goestohollywood
    @frankie_goestohollywood 5 років тому

    Thank you - love your videos !!!

  • @joannahaj1012
    @joannahaj1012 3 роки тому

    My video never displays when going live no matter which mp4 video I include/embedd and no matter in which browser I open it (the video itself works fine though). I can link youtube videos but can't add one of my own videos from my pc! What am I missing? I have tried million of ways to make it happen but with no result, the video never shows

  • @LegitGamer2345
    @LegitGamer2345 3 роки тому

    The video is not loading when I use video tag + offline video method , so far I have not tried linking video online , any fixes ? I’ve cleared my cache and searched about it on stack overflow but none of these seem to work

  • @ambientsoda106
    @ambientsoda106 5 років тому

    Normally you give your wrappers margins and then inner content if need be a absolute and relative position.

  • @dheerkedia6457
    @dheerkedia6457 3 роки тому

    Sir can we add an autoplay tag inside element?

  • @j4n2k93
    @j4n2k93 5 років тому +1

    Thank you so much

  • @DwightWalker
    @DwightWalker 3 роки тому

    That helped make my music video page use responsive design. Thanks.

    • @thegeez001
      @thegeez001 3 роки тому

      You can also place the video/audio links in an array. Check "custom html5 playlist cast roku".

  • @the_funnyworld108
    @the_funnyworld108 3 роки тому

    But, why cant i insert a video?! It shows just nothing but like disabled.. please do reply to my problem here. and please reply ASAP.

  • @LegitGamer2345
    @LegitGamer2345 3 роки тому

    16:57 video becomes equal to size of entire webpage instead of size of container it is inside of

  • @PhilippeHenrique
    @PhilippeHenrique 6 років тому +2

    20:03 How do you resize the window and the elements just update without releasing the mouse??? On my windows 10 I can't do that

  • @jollesracing517
    @jollesracing517 3 роки тому

    I'm having trouble embedding a UA-cam video into mine. Will it not work if the website is offline?

  • @khanwaqar7703
    @khanwaqar7703 4 роки тому

    Hi, I wrote the code same like your's but my video not going to play. the video format is .mp4.
    !HTML code
    Front page


    Your browser can't support.


    !CSS code
    * {
    margin: 0;
    padding: 0;
    }
    .wrapper {
    margin: 0 auto;
    width: 1000px;
    }
    video {
    width: 100%;
    }
    Just show the vedio i am clicking but can't play, note i am using notepad ++

  • @phoenixempire8886
    @phoenixempire8886 4 роки тому

    QUESTION :-)
    Hi Dani and thank, I tried this and gave me the same result:
    * {
    margin: 0;
    padding: 0;
    }
    .wrapper {
    margin: 0 auto;
    width: 80%;
    }
    .videowrapper {
    position: relative;
    padding-bottom: 56.25%;
    }
    .videowrapper {
    position: absolute;
    height: 100%;
    width: 100%;
    }
    I removed from (.videowrapper) [padding-top] and [height]
    and from (.videowrapper ) [left right top bottom]
    The magic ratio is 56.25% :-)
    My question is: if I want to embed a video with ratio 3:4, the ratio still 56.25?
    Have a nice day

  • @calibr0636
    @calibr0636 5 років тому +1

    Thanks a lot man

  • @alexwilson7235
    @alexwilson7235 3 роки тому

    PLEASE, I have a question I have a website and I want to embed a video from UA-cam but I want the embed video including the speed of the video the playback rate. Thank you :)

  • @programmingtacticalcode7968
    @programmingtacticalcode7968 5 років тому +1

    I have one question!!!
    How to change color of timeline in video default is blue on youtube is red pls make Tutorial for that? Answer me

  • @nav-ks6qj
    @nav-ks6qj 3 роки тому

    Hello Dani , I am having a issue with putting my webpage inside of an and the webpage showing inside i did not upload it just want to test it

  • @LegitGamer2345
    @LegitGamer2345 3 роки тому

    13:18 video does not move to right side using same code

  • @StudyReadEducate
    @StudyReadEducate 6 років тому +1

    Waiting for a long long vlog daniii from long time when we can see your vlog .....i really wanted to see the area where u live and lot lot more i wanted to see

  • @akaneneon290
    @akaneneon290 2 роки тому

    9:33 for vs code it is word wrap

  • @XTUBER010
    @XTUBER010 4 роки тому

    Hi Mmtuts, thanks for the video. Do you have any videos on how to embed a simple URL? like.. extract the meta tags and show a little preview to the link on your website, e.g. with an Image, title, and description? Thanks!!

  • @allenklein7462
    @allenklein7462 3 роки тому

    Hey Dani - Thanks for the video - I would have been lost without it. Got everything working on my pc fine, but once it is uploaded to my server - the image of the player is there, but it will not play. When I hit the refresh button the play button flashes white - then off and nothing. Any suggestions?

  • @SkepticalBill
    @SkepticalBill 3 роки тому

    thank you

  • @gokce413
    @gokce413 2 роки тому

    why can't i put and also video tag. i tried but until i delete the video tag, my was unvisible.

  • @samezati716
    @samezati716 4 роки тому

    super helpful - Merc

  • @chaplainandrewkuslick8573
    @chaplainandrewkuslick8573 3 роки тому

    quick question how do i embed or loke a website that has more then one video i am trying to creat a appand i want me churches vimeo page in my app but i can only do a single video do i use a embed or would i use a i

  • @paulhope328
    @paulhope328 2 роки тому

    Wow thanks a lot

  • @Demola704
    @Demola704 Рік тому

    What about if we want to add 2 or more videos

  • @LearningSimplified
    @LearningSimplified 6 років тому

    Shouldn't we include the .ogg source as the source of a video file? Is it required or an obsolete concept for modern browsers? Anyways, great tutorial sir....

  • @vnsminerlimited1585
    @vnsminerlimited1585 6 років тому

    your video is great, but one question, how can i
    3:07
    How to change the quality of the video (same like youtube) in html ? for example we want show video with low internet to people ? can you handle it ? or do you have any video about it ?
    many thanks if you answer.

  • @robertefremov9380
    @robertefremov9380 3 роки тому

    It's 2021 now, has anything changed regarding more easily embedding videos from YT, the complicated part about scaling the height according to the width?

  • @apoorvsinha5193
    @apoorvsinha5193 2 роки тому

    Thanks man

  • @deepikashahdeo608
    @deepikashahdeo608 3 роки тому +1

    good

  • @dennisleyva8239
    @dennisleyva8239 3 роки тому

    I'm using virtual studio code and Ive been trying to add a video by coping the embeding link but the video doesnt show up what am i doing wrong here?

  • @UnknownUser-re6yg
    @UnknownUser-re6yg 3 роки тому

    Code doubt:
    I was bothered by the calculation as I did not understand the math. No blame on the video. The OP tried to explain as clearly as possible. Maybe I am just dumb.
    So, I tried playing around with the css file and I happen to achieve the same by removing some of the code elements which I did not understand.:
    my code:
    *{
    margin: 0;
    padding: 0;
    }
    .wrapper{
    border: 2px;
    border-style: dotted; /* added border to avoid using INSPECT ELEMENT */
    width: 70%;
    margin: 20px 20px;
    }
    .vidwrapper{
    border: 2px;
    position: relative;
    border-style: double; /* added border to avoid using INSPECT ELEMENT */
    padding-bottom: 56.25%; /*100 divided by 56.25 gives the same ratio as 16 by 9 */
    }
    .vidwrapper {
    position: absolute;
    height: 100%;
    width: 100%
    }
    Help needed: Would there be any scaling issue later on? Cause it seems to work for now.

  • @pavankumar-vb8ex
    @pavankumar-vb8ex 3 роки тому

    Sir how to stop recommended videos suggestions at end of the video

  • @RahulKumars98
    @RahulKumars98 3 роки тому

    How to make multichoice option link on video ????

  • @jacksam0001
    @jacksam0001 Рік тому

    Wow you rock it

  • @azeez7675
    @azeez7675 3 роки тому

    Autoplay was not working for me. After some search, I have found out that now you need to write "muted" after "autoplay" so it can automatically play. I hope this helps someone

  • @al526games
    @al526games 4 роки тому

    Still having trouble understanding the difference between margin and padding along with position an floating. Also not knowing when to use them an for what purposes

  • @nitinverma4117
    @nitinverma4117 5 років тому +1

    Can you make a video player like youtube with ffmpeg?

  • @salvagarcia6084
    @salvagarcia6084 5 років тому

    Great video

  • @helennelson835
    @helennelson835 5 років тому

    Why is the height of the videowrapper set to 0px; doesn't that mean the video will have no height?

  • @vodahory378
    @vodahory378 5 років тому

    Super tutorial - tnx.

  • @emirabdurimanov
    @emirabdurimanov 4 роки тому

    Well i use the code as per the lesson but video didnt start to play so might i have to change the browser so this code will work other wise all good if not help please

  • @melfordbirakor
    @melfordbirakor 3 роки тому

    Thanks

  • @PhilippeHenrique
    @PhilippeHenrique 6 років тому

    What chrome extension do you used to update elements HTML resizing the window?