Strictly speaking, nothing about it is free — you need an internet connection, and that almost always means a subscription to an internet provider.
That said, once you are connected there is normally no extra charge for browsing or for playing online. The exceptions are worth flagging: some websites paywall their content, and many MMOs charge a monthly fee on top of your connection.
So the connection costs money, most multiplayer is included in that, and a minority of games want paying for twice.