H5P in Moodle Documentation

H5P In Moodle

H5P content can be added to your Moodle course by selecting “Interactive Content” in the “Add an activity or resource” menu or by copying an embeddable code and pasting it into any activity or resource with a text editor box, such as Label or Page. Adding H5P content as an Interactive Content activity will also automatically generate an entry in the gradebook for the activity, allowing you to evaluate your students’ performance on certain activities depending on the content type.

Due to how H5P behaves in Moodle, most content types allow for unlimited attempts by students. You should not use H5P for major assignments such as exams.


H5P content can be embedded in any activity or resource that uses the Moodle text editor. View the Basics of H5P for information on how to embed the code for an H5P activity. Using the Label resource allows you to embed the H5P activity directly on the course homepage. To display the activity on a separate page, you can use the Page resource. You can also embed H5P content in the pages of a Book activity.

Embedded content references its source and will change if the source changes. To guarantee stability, you should create/upload content on the H5P test page and use that embed code. Downloading an H5P file as a backup for the content you create is also recommended.


H5P offers more than 30 content types, all of which can be installed on your Moodle environment. You do not need to install a content type to embed it, but it must be installed in order to add it as a gradable activity.


Creating an H5P Activity Within Moodle

The process of creating an H5P activity within Moodle is similar to other Moodle activities. To begin creating content with H5P:

  1. On your course homepage, select the gear icon in the top right corner, then “Turn editing on.”
  2. Under the Moodle section you want to add H5P content to, select “Add an activity or resource.”
  3. Select “Interactive Content” from the list, then “Add.”
  4. Enter a name and description. You can also set the description to appear on the course homepage.
  5. Select “Select content type” to open the H5P editor.
  6. Select “Create Content,” then the content type you want to use.
    Note: You can also select “Upload” to use an existing activity file.

Once you have selected a content type, the creation process will depend on the content type chosen. If you need assistance, H5P provides links to a tutorial and/or a downloadable example for each content type at the top of the editor.

The “Display Options” menu, located below the H5P editor, allows you to show/hide an action bar along the bottom of the content window that will provide a downloadable H5P file and an embeddable code for the activity. Using the action bar, you can easily share your H5P activities with others, or save them for backup or reuse purposes. In addition, you can toggle whether a button appears on the action bar that will pop up copyright information for media shown in the activity.

Students can use downloadable H5P files to view correct responses for the activity. To prevent this, you should disable the action bar and frame while students have access.


The “Grade” menu can be used to set the gradebook category the activity will be assigned to, how many points the student must earn to pass the activity, and the maximum amount of points the activity is worth. By default, the category and “Grade to pass” are not set, and “Maximum grade” is set to 10.

The remaining menus are typical of Moodle activities. More information on each menu is available through the Moodle Docs pages on Common module settings, Restrict access and Activity completion. Select “Save and return to course” or “Save and display” to finish creating your H5P activity.


Uploading an H5P File Within Moodle

You can upload premade H5P activities to Moodle using H5P files. This can be helpful if you want to replicate an activity someone else has made (in which case you should credit the content creator), or reuse individual activities from another class or a previous semester. To download the H5P file for an activity, select “Download” on the action bar at the bottom of the content window. To upload the file, begin creating an H5P activity within Moodle, then select “Upload” after opening the H5P editor. Once you have selected the file, the editor should automatically populate the activity data, allowing you to make changes if needed.

Not all H5P content will have a “Download” button available. Only content types installed on your Moodle environment can be uploaded within Moodle.


H5P and the Moodle Gradebook

When you create an H5P activity within Moodle, an entry for the activity will automatically be added to the gradebook. The grade for this entry is also updated automatically when a student completes the activity. This automatic generation only occurs when creating an Interactive Content activity through the “Add an activity or resource” menu. When using H5P to create graded activities, bear in mind:

  • H5P activities only report students’ performance through updating the automatically generated gradebook entries; therefore, if you want the activity to be graded, it must be created within Moodle so the activity will be linked to the gradebook.
  • By design, students can complete H5P activities multiple times and their most recent attempt will be recorded in the gradebook; H5P is therefore not recommended for major assignments.
  • H5P activities that cannot be graded, such as Dialog Cards, will still create a gradebook entry; information on how to avoid entries for non-graded activities is available below.

In the activity settings for each H5P activity is a “Grade” menu. This menu can be used to set the gradebook category the activity will be assigned to, how many points the student must earn to pass the activity, and the maximum amount of points the activity is worth. By default, the category and “Grade to pass” are not set, and “Maximum grade” is set to 10.


Using the “Grade” Menu

When creating an H5P activity within Moodle, you are able to set the maximum grade for the activity. Setting the value to “0” will cause the activity to carry no weight in the gradebook, effectively making the activity non-graded. This does not prevent an entry from being generated in the gradebook. To prevent students from seeing the gradebook entry, you must hide it manually as explained in Adjusting the Gradebook.


Adjusting the Gradebook

By making adjustments to the gradebook itself, you can set H5P activities to carry no weight and be hidden from students, effectively making the activities non-graded. To access these settings, from the course homepage, select the gear icon in the top right corner, then “Gradebook setup.”

The Gradebook setup menu displays a list of course activities and allows you to organize them and adjust the weight—how much it affects the student’s overall grade—of each activity. To remove the weight of an H5P activity so it will not affect the student’s overall grade, check the box in the “Weights” column for the activity and enter a value of “0” into the field. You can also create a category for non-graded activities, set its weight to zero and place the relevant activities in that category.

If you want a non-graded activity to not appear in the gradebook, you can hide the activity by selecting “Edit” in the “Actions” column, then “Hide.” Select “Save changes” when you are finished. By default, this will also hide affected course and category totals; to change this setting, select “Course grade settings” at the top of the page. Under the “Overview report” and “User report” menus, select the “Hide totals if they contain hidden items” drop-down menu, then “Show totals excluding hidden items.” Select “Save changes” when you are finished.

Hiding an activity alone does not remove its weight.


More information on the Moodle gradebook is available on Moodle Docs.

BV52's picture

Hi kmarti10,

Thank you very much for this well written guide :-)


Hello. Is there any plan to allow imported H5Ps to be included in the Moodle gradebook? Would be so useful! Thanks.


I'm not affiliated with H5P and thus can't speak to their plans or ability to do what you're asking, but here's my 2 cents:

I assume you're asking about being able to grade H5P activities that aren't added to Moodle via the "Interactive Content" activity (e.g., importing it into a Page, Label, or Book). In that case, it's likely something you'd need to discuss with someone at Moodle. In the meantime, the only workarounds I can think of would require students submitting proof of completion (e.g., emailing a screenshot of the completed activity), or using the Activity Completion settings to grade them on a Credit/No Credit basis.

Thanks. Yes, that sounds good. Eventually I hope this feature makes it into the Moodle H5P plugin.

BV52's picture

Hi Jeff,

I work with the core team and currently there are no plans in the near future for this feature. Although it looks promising and will open up a lot of possiblities for the plugin. I suggest that you post this as a separate feature request. In order for your feature request to attract as much interest as possible make sure it follows the below guidelines:


  1. It is clear from every perspective how the feature will work. We recommend describing the feature with one or more user stories, for instance “As an author I want it to be possible to pick between different effects for the check answer animation so that the learners will see a variety of effects and also I can adapt the effects to my target audience(I’ll be using pink unicorns which works really well for both my target audience which are 4 year old girls and venture capitalists)”

  2. If the feature can be illustrated with images or videos it always helps

  3. Make it clear what content types this is relevant for, and or if this is a new content type

Make sure you post the feature in the Feature Request forum.


todas las funciones nos ayuda en el progreso de una o varias actividades ,se debe utilizar todas las funciones para resaltar mejor adactando video e imajenes .

telugu's picture


I am wondering whether Moodle creates an entry for embedded activities ( in a page or in a book). Also I would like to know if I host my H5P files out side moodle like in H5p.com or so. How Moodle records grades? Please clarify my doubts.


thanks in advance.

BV52's picture

Hi telugu,

Embedding contents does not send grades into the Gradebook. Contents hosted in H5P.com can be configured using LTI and sends grades into the Gradebook through this LTI connection.


BV52's picture

Thank you for the input and suggestion kmarti10.


Error Missing translations for library core al actualiar a las versión 1.20.2 

BV52's picture

Hi Carlos,

In order to give your bug report the best chance of getting answered, please include the following information:

  1. Detailed steps to reproduce the bug (exactly how and when did it happen)
  2. Platform and version number. E.g. Drupal, Wordpress, Moodle.
  3. Mobile or Desktop
  4. Browser: Chrome, Firefox, Safari etc
  5. H5P plugin version
  6. H5P content type and version (if a content type was used), and a sample URL or attached H5P.
  7. Any browser console errors (strl+shift+J or F12)
  8. Any PHP errors

If it worked before:

  1. Any recent changes to the environment (new plugins/modules, updates, configuration changes etc.)
  2. Any recent changes to the browser you're using (new extensions, updates etc.)

The more information you provide, the quicker the community will be able to fix it and the quicker you'll have a working solution!


todas las funciones nos ayuada para resaltar yfacilitar  el aprendizaje 

I've been searching all over the place and cannot seem to find an exact answer. From one H5P page about setup in Moodle it appears the plug in is free and does not require an H5P license. Is that correct? Or is my institution needing to purchase the appropriate author licensing in order to utilize the plugin? Thanks in advance to anyone who might be able to help shed some light on the necessary start up steps.

BV52's picture

Hi jkrapivk,

The plugin for Moodle is free. you do not have to pay H5P anything to use it.


Thanks BV52 for that clarification! 

Ceit's picture

A faculty member has created several quizzes using the LTI. Her first test the grades appeared in the grade book just fine. The second no scores were put into the grade book, thus the grades for that assignment has nothing in them. Any recommendation  on what happened? The settings seem to be the same, with the exception of using 2 restrictions  and Do not indicate activity completion  -- Is there a way to capture the grade data or is lost. 



BV52's picture

Hi Ceit,

Please check my answer here.



I have been searching where the strings for the contenttypes are in the moodle-plugin and cannot find anything.

Can someone give me a hint where to search? I did not find json-files neither php-files that I could translate to german.



I would likle to ask: I'm using moodl mobile app and H5P components embeded in it. Now the content on my phone only takes half top of the page and leaves the other half white (empty). Is there any way to change that, so the content from H5P could take entire page in the app?

Thanks you for your help

BV52's picture

Hi Aga,

The last time I tested Moodle App it works perfectly although I haven't looked at it for a few months now. I think it is best that you post this question in the Moodle forums since they are more proficient with regards to the app.


Im using Moodle 3.8, and i'm not sure if there wont be any problems once i install the h5p plugin to be able to add interactive content to my course. Do i need to upgrade to 3.10?

BV52's picture

Hi acereviewcenter,

It is not necessary to upgrade to 3.10 to use the H5P plugin for Moodle.


Thanks for the advice. 

Im on a trial period to see how H5p interactive content works. I tried creating an interactive video to experiment with the elements and after finishing up, some parts of the video seems distorted (flashing green light, audio not coming out well). The original video (edited on Movavi) worked fine on media player, though. What could be the problem?

BV52's picture

Hi acereviewcenter,

Please provide the following:

  1. Sample content
  2. Browser/s and version/s


this is on h5p.com using Chrome, i dont know how to download the h5p file though, so i used screencast to take a video. 


BV52's picture

Hi acereviewcenter,

I can definitely see the issue in the recorded but sadly this doesn't really help in diagnosing the issue. You can follow the steps on this documentation on how to download contents.



otacke's picture


To me this looks like the video is corrupted itself - even though your media player doesn't seem to show a sign of trouble. Its codec may iron out glitches that other codecs leave untouched.

Have you tried to open and play the video in the browser directly? I bet you'll have the same issue. H5P does not decode the video, but merely uses the video player/codecs that the browser provides.



I think you got that right. I used movavi editor, and jsut this morning, the last video i edited got corrupted and unretrievable now. Im in the process of getting another video editor... which brings me to another question if you can answer this for me.. What video editor/screenrecorder software would you recommend?

otacke's picture

Hi acereviewcenter!

Given no criteria at all, how should anyone recommend something? I use OBS Studio and Kdenlive. That's what I can tell you.