When reading about network protocols it says they are a set of rules and format for communication between devices over a network, so basically an agreed way of how to communicate over a network.
But then I came across routing protocols which are described as a set of rules used by a router when communicating with its neighbours (routers). Example of routing protocols are RIP, OSPF, EIGRP.
So I'm assuming they are two different things but act similar?