- Mở Youtute video cần đăng
- Click Share > Embeded
- Copy đoạn code từ <iframe ….. đến </iframe>
Ví dụ: <iframe width=”560″ height=”315″ src=”https://www.youtube.com/embed/nVohFRyGUws” frameborder=”0″ allow=”accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture” allowfullscreen=””></iframe> - Add a new post
- Paste đoạn code vào post
- Dùng code <center></center> để canh giữa đoạn video
Ví dụ: <center><iframe width=”560″ height=”315″ src=”https://www.youtube.com/embed/nVohFRyGUws” frameborder=”0″ allow=”accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture” allowfullscreen=””></iframe></center> - Chỉnh width và height cho đoạn video bằng cách thay số cho đoạn code.
Ví dụ: <iframe width=”600” height=”350” src=”https://www.youtube.com/embed/nVohFRyGUws” frameborder=”0″ allow=”accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture” allowfullscreen=””></iframe> - Update.