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

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 พ.ย. 2024

ความคิดเห็น • 248

  • @Dani_Krossing
    @Dani_Krossing  ปีที่แล้ว

    NEW UPDATED 2023 COURSE AVAILABLE! 🙂
    You can find it here: th-cam.com/video/v8jDnBYc0bs/w-d-xo.html&ab_channel=DaniKrossing

  • @Racools
    @Racools 5 ปีที่แล้ว +119

    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

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

  • @bobbychicano
    @bobbychicano 4 ปีที่แล้ว +14

    Thank you for taking the time to create this lesson.

  • @nandapandey8229
    @nandapandey8229 3 ปีที่แล้ว

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

  • @donalpaccio4233
    @donalpaccio4233 3 ปีที่แล้ว

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

  • @westbankstudios9529
    @westbankstudios9529 3 ปีที่แล้ว

    Best Video Dani it helped me out greatly thanks!

  • @cwang9945
    @cwang9945 3 ปีที่แล้ว

    Thanks a lot! Very clear explanation.

  • @gopinath7172
    @gopinath7172 4 ปีที่แล้ว

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

  • @sktech2001
    @sktech2001 4 ปีที่แล้ว

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

  • @azarmedia
    @azarmedia 2 ปีที่แล้ว

    Thanks man it was very helpful.

  • @DeshantaDevkota
    @DeshantaDevkota 5 ปีที่แล้ว +1

    been watching for a couple days really simple for beginners

  • @axelcarvalho2661
    @axelcarvalho2661 5 ปีที่แล้ว +3

    Wow! Great explanation. Thank you.

  • @vaylx2253
    @vaylx2253 3 ปีที่แล้ว

    Great job mate, thanks.

  • @sujitgupta7004
    @sujitgupta7004 4 ปีที่แล้ว

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

  • @Goatress
    @Goatress 3 ปีที่แล้ว

    Thx, your videos are awesome!

  • @milliconsolutions5377
    @milliconsolutions5377 3 ปีที่แล้ว

    Thanks man. This was a well-explained video.

  • @jandras1
    @jandras1 3 ปีที่แล้ว

    Top notch tutorial. Thank you.

  • @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:

  • @khoatran6722
    @khoatran6722 5 ปีที่แล้ว

    Awesome lesson and very easy to follow along

  • @michaeldanso3780
    @michaeldanso3780 3 ปีที่แล้ว

    In fact l love your videos. Thanks so much

  • @coursdedessin-artacademiep927
    @coursdedessin-artacademiep927 6 ปีที่แล้ว +3

    Thanks man, really helped my site.

  • @divyabharti1561
    @divyabharti1561 4 ปีที่แล้ว

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

  • @MyRandomnessStuff
    @MyRandomnessStuff 5 ปีที่แล้ว +4

    big up man this video helped me out in 2019

  • @Sweet50
    @Sweet50 4 ปีที่แล้ว

    Thank you so much. You helped me a lot

  • @MrScoopss
    @MrScoopss 2 ปีที่แล้ว

    The most useful lesson I learned from watching the video called “How to Create HTML5 Videos and Embed Videos” on “TH-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 TH-cam or a diffent location because it will use less space and you will not need to worry about using your own hosted website.

  • @hector_sh3861
    @hector_sh3861 2 ปีที่แล้ว

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

  • @sandygeddry724
    @sandygeddry724 6 ปีที่แล้ว +4

    This information is very helpful. I think that TH-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.

  • @samezati716
    @samezati716 4 ปีที่แล้ว

    super helpful - Merc

  • @ulysse8182
    @ulysse8182 5 ปีที่แล้ว +2

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

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

  • @jacksam0001
    @jacksam0001 ปีที่แล้ว

    Wow you rock it

  • @calibr0636
    @calibr0636 5 ปีที่แล้ว

    Thank you man, for the video, I just converted a random TH-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 5 ปีที่แล้ว

      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

  • @selpink579
    @selpink579 4 ปีที่แล้ว

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

  • @paulhope328
    @paulhope328 2 ปีที่แล้ว

    Wow thanks a lot

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

  • @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!

  • @frankie_goestohollywood
    @frankie_goestohollywood 5 ปีที่แล้ว

    Thank you - love your videos !!!

  • @vodahory378
    @vodahory378 5 ปีที่แล้ว

    Super tutorial - tnx.

  • @deepikashahdeo608
    @deepikashahdeo608 3 ปีที่แล้ว +1

    good

  • @farhaasghar6625
    @farhaasghar6625 6 ปีที่แล้ว

    Well done

  • @calibr0636
    @calibr0636 5 ปีที่แล้ว +1

    Thanks a lot man

  • @DLiberator78
    @DLiberator78 7 ปีที่แล้ว +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.

  • @j4n2k93
    @j4n2k93 5 ปีที่แล้ว +1

    Thank you so much

  • @salvagarcia6084
    @salvagarcia6084 5 ปีที่แล้ว

    Great video

  • @Chikwesirikingsley
    @Chikwesirikingsley ปีที่แล้ว

    Nice ☀️☀️

  • @RichardHema
    @RichardHema 6 ปีที่แล้ว +1

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

  • @jk-op3ht
    @jk-op3ht 7 ปีที่แล้ว

    Following you from India

  • @nguyenduynguyen2047
    @nguyenduynguyen2047 5 ปีที่แล้ว

    thanks man

  • @melfordbirakor
    @melfordbirakor 4 ปีที่แล้ว

    Thanks

  • @taspepi3401
    @taspepi3401 5 ปีที่แล้ว

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

  • @shivprasadgupta3717
    @shivprasadgupta3717 3 ปีที่แล้ว

    bro awsome

  • @zbytecny-clovek-9314
    @zbytecny-clovek-9314 4 ปีที่แล้ว

    Thank you so much! :-)

  • @rahulmudupurigeek1994
    @rahulmudupurigeek1994 5 ปีที่แล้ว +2

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

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

  • @ca4design
    @ca4design 3 ปีที่แล้ว

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

  • @hodanmaxamuud312
    @hodanmaxamuud312 5 ปีที่แล้ว

    thank you

  • @tristanfuentes5068
    @tristanfuentes5068 2 ปีที่แล้ว

    I love you!

  • @ambientsoda106
    @ambientsoda106 5 ปีที่แล้ว

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

  • @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)

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

  • @LegitGamer2345
    @LegitGamer2345 3 ปีที่แล้ว

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

  • @jessephiri7834
    @jessephiri7834 2 ปีที่แล้ว

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

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

  • @RavUwU-
    @RavUwU- 3 ปีที่แล้ว +1

    hardest one till now

  • @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?

  • @leonradonjanin9479
    @leonradonjanin9479 5 ปีที่แล้ว +1

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

  • @tomdavid6916
    @tomdavid6916 2 ปีที่แล้ว +1

    Can I use a video as a background using code?

  • @chamithweerasinghe
    @chamithweerasinghe 7 ปีที่แล้ว

    #Thanks Brother

  • @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?

  • @dheerkedia6457
    @dheerkedia6457 4 ปีที่แล้ว

    Sir can we add an autoplay tag inside element?

  • @holio1009
    @holio1009 2 ปีที่แล้ว

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

  • @king-ci4ob
    @king-ci4ob 5 ปีที่แล้ว

    goin to subscribe now...

  • @clone_nk
    @clone_nk 5 ปีที่แล้ว +1

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

  • @modumuhammedahmedaresphone7997
    @modumuhammedahmedaresphone7997 2 ปีที่แล้ว

    Pls which editor do you use ?

  • @qphiig8731
    @qphiig8731 2 ปีที่แล้ว

    gv) (great video)

  • @AM-vv7xr
    @AM-vv7xr 6 ปีที่แล้ว +3

    thank you man!!!

  • @chrinamint
    @chrinamint 10 หลายเดือนก่อน

    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.

  • @akaneneon290
    @akaneneon290 2 ปีที่แล้ว

    9:33 for vs code it is word wrap

  • @ilya8864
    @ilya8864 4 ปีที่แล้ว +2

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

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

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

  • @abdennasserelyassin3493
    @abdennasserelyassin3493 7 ปีที่แล้ว

    Continue bro following you from Morocco

    • @itech40
      @itech40 6 ปีที่แล้ว

      MADZ

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

  • @StudyReadEducate
    @StudyReadEducate 7 ปีที่แล้ว +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

  • @alexwilson7235
    @alexwilson7235 3 ปีที่แล้ว

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

  • @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!!

  • @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?

  • @abdulrehmannisar324
    @abdulrehmannisar324 4 ปีที่แล้ว

    Love From Pakistan

  • @ziloun
    @ziloun 3 ปีที่แล้ว

    thanks mate, I have to create a website for my school project....pffff

  • @vnsgroup.usreza
    @vnsgroup.usreza 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.

  • @Letsgo-xc9nc
    @Letsgo-xc9nc 4 ปีที่แล้ว

    Great video! hey can you do an addon video that shows how to add text overlay over the embedded video

  • @guitarplayer1434
    @guitarplayer1434 ปีที่แล้ว

    are images , videos in folders or files within the root folder ?

  • @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?

  • @pianoLee-sx9dx
    @pianoLee-sx9dx 6 ปีที่แล้ว

    I am going to be uploading some videos on youtube for my piano lessons but that is going to be the free lessons.. Eventually, I would like people to come to my website to watch more videos, where they have to pay for the services... Do I need to upload the videos to an online database service? Some people mentioned about vimeo services but they are not free...

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

  • @PROTOPROTOMMXXIV
    @PROTOPROTOMMXXIV 6 ปีที่แล้ว

    Great tuts!

  • @mortenlund1418
    @mortenlund1418 3 ปีที่แล้ว

    I think this problem is solved in 2020 about the videos height using crome.

  • @RahulKumars98
    @RahulKumars98 3 ปีที่แล้ว

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