Recommended reading material
For static web pages:
Keep in mind that many pages generate content dynamically using JavaScript after they have loaded. In such cases, the "static page" method may not be sufficient, and you may need to explore tools in the "Web automation" field.
Selenium is one such toolset that allows you to control your browser to open and navigate pages using a regular browser or even a 'headless' browser like PhantomJS.
Best of luck as you dive into the world of reading and coding.
[edited for illustrative purposes]
This process is known as Web scraping - search online for examples using Google. The following are just a few results from my own searches, provided without any warranties or endorsements:
For "scraping static webpages" - check out this example using jsoup
For dynamic pages - here's an example utilizing Selenium