{"id":10064,"date":"2021-01-04T14:13:46","date_gmt":"2021-01-04T19:13:46","guid":{"rendered":"https:\/\/www.med.unc.edu\/webguide\/?page_id=10064"},"modified":"2025-02-04T14:27:24","modified_gmt":"2025-02-04T19:27:24","slug":"youtube","status":"publish","type":"page","link":"https:\/\/www.med.unc.edu\/webguide\/userguide\/media\/video\/youtube\/","title":{"rendered":"YouTube"},"content":{"rendered":"

In the School of Medicine web system, you can display a YouTube video on a web page through the use of an iframe.<\/p>\n

 <\/p>\n

1. On the page of the YouTube video, select the share<\/strong> button below the video.<\/p>\n

\"Screenshot<\/span><\/p>\n

 <\/p>\n

2. You will see a popup with several share options. Select the Embed<\/strong> button.<\/p>\n

\"Screenshot<\/span><\/p>\n

 <\/p>\n

3. Copy the embed code.<\/p>\n

\"Sample<\/span><\/p>\n

4. Paste the embed code into your web page.<\/p>\n

5. In the code you just pasted, you have to change the alligator brackets (<<\/strong><\/span> and ><\/strong><\/span>) to the squared off brackets ( [<\/strong><\/span> and ]<\/strong><\/span> ).<\/p>\n

6. Your code should look something like this:<\/p>\n

[iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/RD8p9wvr4yw\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen][\/iframe]<\/code><\/p>\n

Example<\/h3>\n

The code above will embed the following video on the page.<\/p>\n\n\n