A tube-like invagination of the epidermis from which the hair shaft develops and into which the sebaceous glands open. The hair follicle is lined by a cellular inner and outer root sheath of epidermal origin and is invested with a fibrous sheath derived from the dermis.