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.


BV52's picture

Thank you for the input and suggestion kmarti10.