fixed some semantical issues (#33465)
This commit is contained in:
committed by
The Coding Aviator
parent
078e88fd45
commit
b8b1e029db
@ -3,7 +3,7 @@ title: Embedding Youtube Videos
|
||||
---
|
||||
## Embedding Youtube Videos
|
||||
|
||||
You've probably seen a lot of embedded videos on your favourite websites. So, how do we embed YouTube videos for our own website? Simple! In order to embed a YouTube video, we'll need an `<iframe>` element. This element allows us to embed another document in our current HTML document. It's often used for promoting products in ads. Keep in mind that you're not only limited to YouTube - you can also experiment with other documents.
|
||||
Probably a lot of times you have seen embedded videos on your favorite websites. Today we will talk about embedding YouTube videos, which is very easy to do, even if you don't have any knowledge about it. For this task we will use `<frame>` element, which is very useful in embedding other HTMLs. It's very often used to promote some products as adds. Notice that you're not only limited to YouTube - you can also experiment with other documents.
|
||||
|
||||
### `<frame>` Element
|
||||
|
||||
@ -21,8 +21,10 @@ src="https://www.youtube.com/embed/v8kFT4I31es">
|
||||
</iframe>
|
||||
```
|
||||
|
||||
Inserted values are recommended, but feel free to change them in a way that you would like.
|
||||
|
||||
#### Autoplay
|
||||
What should we do if we would like to make this player starting automatically playing? Just add to your link value `?autoplay=1`. But be careful, because it can be annoying for a lot of people visiting your webpage.
|
||||
What should we do if we would like to make this player start playing automatically? Just add to your link value `?autoplay=1`. But be careful, because it can be annoying for a lot of people visiting your webpage.
|
||||
|
||||
```html
|
||||
<iframe width="420" height="315"
|
||||
@ -30,6 +32,8 @@ src="https://www.youtube.com/watch?v=v8kFT4I31es?autoplay=1">
|
||||
</iframe>
|
||||
```
|
||||
|
||||
Inserted values are recommended, and feel free to change them however you like.
|
||||
|
||||
## YouTube Loop
|
||||
|
||||
Value 0 (default): The video will play only once.<br>
|
||||
|
Reference in New Issue
Block a user