Good resources for beginners learning how to program or code include MIT Open CourseWare, Google University, Mozilla Developer Network and Apple Developer. All these resources provide coding lessons, and many also offer other types of classes.
MIT Open Courseware's thousands of classes include many in computer science. All the courses are free, including online textbooks, assignments and exams. Google University is particularly useful for those wanting to learn to program Android apps. Mozilla Developer Network provides training in HTML, Java and CSS, all designed to help users learn to build websites. Those wanting to learn to code for Mac or iOS platforms can find plenty of resources available at Apple Developer.