유튜브 쇼츠 영상을 게시판에 <iframe>으로 넣는 방법, 쇼츠영상 삽입
1. 아래의 쇼츠 영상 주소는 다음과 같습니다.
https://www.youtube.com/shorts/_YsVyFyfeUY
2. 일반적으로 유튜브영상을 소스로 넣는 방법은 다음과 같습니다.
<iframe
width="560" height="315"
src="https://www.youtube.com/embed/유튜브ID값"
title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen>
</iframe>
- 가로와 세로 크기를 조정해 주시고,
- 위 ID 값 부분에 쇼츠의 ID값 _YsVyFyfeUY 를 넣으면 아래와 같이 표현이 됩니다.
어렵지 않죠? ^^
<iframe
width="360" height="600"
src="https://www.youtube.com/embed/_YsVyFyfeUY "
title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen>
</iframe>
* 결론 : 그냥 간단히 넣는 방법은 아래형식으로만 넣으시면 됩니다.
<iframe src="https://www.youtube.com/embed/_YsVyFyfeUY
" width="360" height="600" frameborder="0" allowfullscreen="">
</iframe>