HTML compact attribute
The HTML compact attribute is utilized with the <ol>, <ul>, and <dir> HTML tags to reduce the size of a list on a web page. Using the "compact" attribute with the HTML tag reduces the indentation of each line in the list and the space between lines in the list, to conserve space on the web page.
The example above shows how the compact attribute would be used with the <ul> tag.
The compact attribute is a deprecated attribute and no longer supported by the major Internet browsers. It is also not supported in HTML5. Instead, you can use CSS to change line indentation and spacing between lines in a list.