The HTML compact attribute is utilized with the

    ,
      , and 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 space between them, conserving space on the web page.

      • Item 1
      • Item 2
      • Item 3

      The example above shows how the compact attribute would be used with the

        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.

        HTML, Internet terms, Web design terms

        • How to start in HTML and web design.
        • Complete information and help with HTML.