How do I sign out of iCloud?

The following link shows how to sign out of iCloud on iPads, Laptops, etc: https://support.apple.com/en-us/HT208242