A headlamp for a motor vehicle comprising - a plurality of lighting elements, which are arranged next to each other along an extension direction of the headlamp, and - a control device for controlling the plurality of lighting elements for providing at least one light distribution with the headlamp, wherein each of the lighting elements includes a plurality of light emitting diodes, which are individually or collectively controllable with the control device, wherein various high beam distributions are provided as the different light distributions by the control of the lighting elements, characterized in that - a maximum value for an operating parameter, with which the lighting element is at most operable in providing the at least one light distribution, is stored in the control device for each of the lighting elements depending on the position of the lighting element along the extension direction of the headlamp independently of the at least one light distribution, wherein the respective maximum value is not exceeded for different light distributions, which are provided by the individual lighting elements, wherein - an illuminance of the respective lighting element is adjustable by the operating parameter, wherein the operating parameter is an electrical current intensity, which flows through the respective lighting element, wherein - the maximum values for the operating parameter of the lighting elements are higher in an area associated with a principal radiation direction of the headlamp than in an edge area of the headlamp, - the maximum values comply with a predetermined distribution along the extension direction of the headlamp, wherein the distribution is adjustable. - a plurality of lighting elements, which are arranged next to each other along an extension direction of the headlamp, and - a control device for controlling the plurality of lighting elements for providing at least one light distribution with the headlamp, wherein each of the lighting elements includes a plurality of light emitting diodes, which are individually or collectively controllable with the control device, wherein various high beam distributions are provided as the different light distributions by the control of the lighting elements, characterized in that - a maximum value for an operating parameter, with which the lighting element is at most operable in providing the at least one light distribution, is stored in the control device for each of the lighting elements depending on the position of the lighting element along the extension direction of the headlamp independently of the at least one light distribution, wherein the respective maximum value is not exceeded for different light distributions, which are provided by the individual lighting elements, wherein - an illuminance of the respective lighting element is adjustable by the operating parameter, wherein the operating parameter is an electrical current intensity, which flows through the respective lighting element, wherein - the maximum values for the operating parameter of the lighting elements are higher in an area associated with a principal radiation direction of the headlamp than in an edge area of the headlamp, - the maximum values comply with a predetermined distribution along the extension direction of the headlamp, wherein the distribution is adjustable.