MOOCs (Massive open online courses), being free and open to anyone, don't usually award college credit to graduates. Recently, however, some higher education institutions have partnered with the major MOOC platforms to deliver the first MOOCs with the option to gain credit. Although these programs do have a cost, it is considerably lower than the equivalent campus courses.
To find out more, see MoocLab's Guide to MOOC programs offering college credits
To find out more, see MoocLab's Guide to MOOC programs offering college credits