A network consists of two or more computers linked together to share resources. Computers can be connected through cables, wireless connections, or infrared light beams. There are two main types of networks: a local area network (LAN) which connects computers within a small area, and a wide area network (WAN) which connects networks across larger geographic areas.