It is unlawful for any person to own, harbor, or keep any dog over the age of four months, or to permit such a dog which is owned, harbored, or controlled by him to run at large, unless the dog has attached to its neck or leg a substantial collar on which one of the following is fastened: