Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
Thus far all of the documents that we have been creating inside of Moodle have been all HTML based. But what if we want to create a page where we are displaying some HTML code for our students, so that they will be able to learn how to write that HTML code themselves? Well, one way to do that is to simply add a resource that is a text page. That's what we are going to do in this exercise. So go ahead and scroll down to the first week's worth of content and we're going to click the dropdown menu for Add a resource and choose Compose a text page.
For the Name of this document, we'll type in HTML code to create a web link. For the Summary, HTML code to create a web link. Now we'll go ahead and scroll down in our browser window. So that we have got the Compose a text page section right here up in the middle of our screen. And you'll notice that what's different about this window from previous exercises that we've been doing with the HTML Editor is that there is no row of icons with additional editing tool available to us.
This is going to just plain text inside of this window. There is a dropdown menu at the bottom for Format, and there is four possible formats that we could choose from. The first Moodle Auto- Format would be, if we wanted a combination between simply plain text that's going to just appear, as we are typing it and executed HTML code. So in other words, if we go ahead and type in some text in the top and then we know some specific HTML code. We can just type that code directly in line and when Moodle displays this page, it would read the plain text and then when it encounter the code, it would go ahead and execute that code. Other ways you could use that would be simply typing a URL inside of a Moodle Auto-Format would automatically activate the link that you have typed.
So if you typed in address to Google and you posted this page, the link to Google would be an active link. The next option here is HTML format and what that would do is it would give you the ability to just simply type in plain HTML code directly into the blank and any code that you write in here would be executed. The third option Plain Text Format is going to be if you want to type in any code and have it displayed out to the students. The Plain Text Format is not going to execute any code for you. The fourth option Markdown format has a completely different way of marking up your text. So that you can apply formatting to your text by a different set of codes. What we want to use for this exercise though is simply the Plain Text format.
So we'll come back up here to the top and click into the blank, and we'll just go ahead and type in 'To create a web link use the following code.' Hit Return and the code for that is TEXT_LINK and then we'll give an Example. Come down one more line and we'll type in now the text that we want to be hyperlinked would be simply Google and . And this is going to create a hyperlink that would allow user to simply click on the text Google and it would be a link.
So that's all we want to show to our students how to go ahead and do that. So we'll go ahead and scroll all the way down to the bottom and click the Save and display button. And you can see what happens is that the Example code that we've written is being displayed to the user rather than being executed. So let's go ahead and return back to our course. If we scroll down in the list here is the HTML code to create a web link. It's right here and if we were to click on that, we can see that page shows up as we were expecting it to.
So we can return back to our page. Creating a text page is really simple. It's just a tool that's inside of Moodle to provide you with another way of displaying information inside of your Moodle course.
Get unlimited access to all courses for just $25/month.Become a member
82 Video lessons · 91066 Viewers
80 Video lessons · 138143 Viewers
59 Video lessons · 56953 Viewers
52 Video lessons · 70582 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.