The max-height and height properties in CSS are used to control the height of an element, but they have some key differences:
height: This property sets the exact height of an element. It specifies the height in pixels, percentages, or other length ...