To connect to the internet, you need a browser (software), internet connection (service), and network adapter (hardware). A LAN cable is just one possible physical medium - you can connect via Wi-Fi, fiber, mobile data, or other means without needing a LAN cable specifically.