
Your course is looking great so far! Let’s now take a look at how to add a click-to-reveal activity or interactive asset.
You can combine and adapt the code for adding a transcript (Method 1) and a box around text to create an activity that has a click-to-reveal answer.
Click on the Source code Pro icon and scroll down to the point where you want to add an activity. Hit the Enter key on your keyboard to create a blank line in the code.
Copy the following code and paste it onto the blank line:
<div style="width: 600px; border: 1px solid black; border-radius: 5px; padding: 10px; margin: 10px;">
<h5>Activity</h5>
<p>In which UK city is The Open University headquartered?</p>
<details>
<summary><strong>Reveal answer</strong></summary>
<br>
<p>The answer is Milton Keynes.</p>
<hr>
</details>
</div>
Here's how the code above works onscreen:
In which UK city is The Open University headquartered?
The answer is Milton Keynes.
Change the text in the code to suit the text of your own activity.
‘H5P’ is an abbreviation for ‘HTML5 package’ – interactive content such as presentations, videos and other multimedia, questions, quizzes, games and more. This feature allows HTML5 assets to be added to a course.
Any question attempts in the H5P are marked automatically and the grade is recorded in the gradebook.
This feature allows you to upload an existing H5P file that you have created on the H5P website. To add an H5P activity to a page in your Moodle book, place the cursor at the point in the course content where you want to add it and click on the Insert H5P content icon.
This will open a new pop-up window with the heading Insert H5P content.
If your H5P activity has a URL, copy and paste it into the H5P URL or file upload field.
If your H5P activity is a file, click on the Browse repositories button.
In the new pop-up window with the heading File picker, click on the Choose File button and navigate to the file you want to add. Add the name of whoever created or owns the file in the Author box and select the appropriate licence in Choose licence. Then click on the Upload this file button.
Returning to the Insert H5P content pop-up window, there are two drop-down lists with further options. Under H5P options you can choose whether you want to allow the H5P activity to be downloaded, or to include embed or copyright buttons; under Display options you can choose whether you want to allow the H5P activity to play automatically in the mobile app. Click on Insert H5P content.