The Internet is a large collection of computers all over the world that are connected together in a variety of ways.
The World Wide Web (www) is a part of the Internet that is connected in a certain way. Computers connected to the World Wide Web can easily access things in other computers that are attached, no matter where those computers are.