---
title: "Embedding a Youtube video in Moodle"
description: "There are many instances that require a Youtube video to be added to your Moodle website. Moodle has the HTML feature that allows different HTML scripts to be placed on the site. This is where a..."
url: https://www.inmotionhosting.com/support/edu/moodle/embed-youtube-video/
date: 2012-12-10
modified: 2021-08-16
author: "InMotion Hosting Contributor"
categories: ["Moodle"]
type: post
lang: en
---

# Embedding a Youtube video in Moodle

There are many instances that require a Youtube video to be added to your Moodle website. Moodle has the HTML feature that allows different HTML scripts to be placed on the site. This is where a Youtube video can be inserted. This article will explain how to insert an Youtube video in the Moodle 2.3 Frontpage.

### Inserting a Youtube video

1. [Log into the Moodle Dashboard](/support/edu/moodle/moodle-login-administrator/) **Important!** Keep in mind that [Editing must be turned on](/support/edu/moodle/creating-courses-in-moodle/) in the Settings section in order to edit any of these options.
2. [![embed-youtube-video-1](https://www.inmotionhosting.com/support/wp-content/uploads/2012/12/edu_moodle_109_embedding-youtube-video_embed-youtube-video-1.gif)](/support/wp-content/uploads/2012/12/edu_moodle_109_embedding-youtube-video_embed-youtube-video-1.gif) In this tutorial, we will insert a Youtube video on the FrontPage. **Click the Edit icon**.
3. [![embed-youtube-video-2-moodle](https://www.inmotionhosting.com/support/wp-content/uploads/2012/12/edu_moodle_109_embedding-youtube-video_embed-youtube-video-2.gif)](/support/wp-content/uploads/2012/12/edu_moodle_109_embedding-youtube-video_embed-youtube-video-2.gif) Next, **Click the HTML icon** in the WYSIWYG editor.
4. [![embed-youtube-video-3-moodle](https://www.inmotionhosting.com/support/wp-content/uploads/2012/12/edu_moodle_109_embedding-youtube-video_embed-youtube-video-3.gif)](/support/wp-content/uploads/2012/12/edu_moodle_109_embedding-youtube-video_embed-youtube-video-3.gif) Next, **paste the Youtube code into the code**. In this example, the following code is being used. <iframe src="https://www.youtube.com/embed/fvtNh3-UFeA" allowfullscreen="" frameborder="0" height="315" width="560"></iframe> **Important!** If the Youtube video is connecting to Youtube with https://, the box will display black. To make the box show the video, use https:// in the url of the iframe code. **Click Save Changes**. [![embed-youtube-video-4-moodle](https://www.inmotionhosting.com/support/wp-content/uploads/2012/12/edu_moodle_109_embedding-youtube-video_embed-youtube-video-4.gif)](/support/wp-content/uploads/2012/12/edu_moodle_109_embedding-youtube-video_embed-youtube-video-4.gif) Now the Youtube video will display on the page similar to the snapshot to the right.

This concludes the tutorial on embedding a Youtube Video in Moodle 2.3. For more information on this Education course please visit [Additional Moodle Features](/support/website/what-is-suphp/).
