The dermis also contains sweat and oil glands for temperature regulation and protection.