A resource is a Moodle module designed to present non-interactive information. The format of information is dependent upon the type of resource selected when it is added to a course.
Resource types include text pages, web pages, links to websites or files, directory listings, and IMS content packages.
Resource types are pluggable components in Moodle. They define the format and display of static information.
Similar to activity types, these are selected directly from an Add a resource… drop-down menu (as shown in the following screenshot). The options available in this menu are defined by the resource type plugins loaded in your Moodle system:
All resource types use the same base class and data table. Each resource type is responsible for what they display and how they display it. These are created by extending the base resource class in a new file.