There are times when the Internet will have the best information for your research. Information from the Internet can be more recent and sometimes includes information that your library cannot provide. Examples include:
While the Internet has an enormous range of available information, unlike a library, there is no one assessing the information for you. It's up to you to evaluate what you see online. You will have to determine which information is true, accurate, complete, unbiased, and up-to-date.
Paid advertisers on search engines have bid on the keywords that you type in, hoping for you to click on their link. The search engine makes money when you do that. The free results are just web pages that come up because your words match something on that page. General search results are problematic for your academic needs; there is no way to know if such sites contain credible information until you evaluate them.