The max-width CSS attribute specifies an element's maximum width. It prevents the width property's utilised value from exceeding the value given by max-width.