The width() and height() methods can be used to get and set the width and height of HTML elements.