Check out example codes for "how to add a youtube video to your html website". It will help you in understanding the concepts better.
Code Example 1
<iframe width="560" height="315" src="https://www.youtube.com/embed/thatthingonvideourl" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
Code Example 2
<!-- You can add lots more fuetures than this by the way...
- Find a YouTube video
- Set width and height
- Copy the embeded URL into the src value
But this is how to add a YouTube video:
-->
<body>
<iframe width="420" height="345"
src="https://www.youtube.com/embed/tgbNymZ7vqY" >
</iframe>
</body>
Code Example 3
<iframe width="420" height="315"
src="https://www.youtube.com/embed/tgbNymZ7vqY">
</iframe>
Code Example 4
Share video
Learn ReactJs, React Native from akashmittal.com