Well, contrary to popular advertising.... you will not learn to be a good programmer by looking at websites. Most web-based tutorials for programming skip over some important fundamentals and are light on the "why" things are done that way. Sure, you can probably find a website such as
http://www.cplusplus.com/doc/tutorial/ and walk your way through it, and unless you already have a background in computer science, many things will just be "magic." I have been writing programs since the late 1980s (middle school) and have a Masters in Software Engineering, and I completely disagree with how programming is taught these days. The fundamentals and basics are skipped, and people are thrown right into higher level languages, and introduced to libraries that do most of the grunt work for them. This is all well and good, until your program starts to exhibit bugs (and it will), without understanding what is going on under the proverbial hood, you will have a very difficult time, and may not even be able to figure out the problem. If your lucky, a web search might provide you an answer, a different person who has the necessary background tells you what to do. Unless you are willing to put in the effort to learn programming the "right" way, I would encourage you to look elsewhere. In fact, a place you could start is Web Page Building (some folks will call it web design, but I could argue where that is different). Check out this site:
https://www.w3schools.com/howto/howto_website.asp This isn't the most friendly way to start learning how to build sites using HTML/CSS, but it will get you started and give you a solid foundation. Unlike computer programming, HTML/CSS is really about visual style, and comes naturally for many folks. I suspect you will enjoy that more. Not to mention, all you need is TextEdit and your web browser on your Mac, and you are all set
Good luck!
Rich S.