The recent models of the raspberry pi from 2016 upwards are equipped with inbuilt Wifi connectivity. Lesser models have to make use of a USB cable to connect.