HTML | <ol> compact Attribute Last Updated : 22 Mar, 2022 Comments Improve Suggest changes Like Article Like Report The HTML <ol> compact attribute is used to define the list should be smaller than the normal by reducing the space between the list items and the indentation of the list. It is a Boolean attribute.Syntax: <ol compact> Note: The HTML <ol> compact attribute is not supported by HTML 5 instead of using this we can use the CSS line-height property.Example: html <!DOCTYPE html> <html> <head> <title> HTML ol compact Attribute </title> </head> <body> <h1 style="color:green;"> GeeksforGeeks </h1> <h3>HTML <ol> compact Attribute</h3> <p>Compact attribute</p> <ol compact> <li>HTML</li> <li>CSS</li> <li>JS</li> </ol> </body> </html> Output: Supported Browsers: The HTML <ol> compact attribute is not supported by any major browsers. Comment More infoAdvertise with us Next Article HTML | colspan Attribute M manaschhabra2 Follow Improve Article Tags : Web Technologies HTML HTML-Attributes Similar Reads HTML <ul> compact Attribute The HTML <ul> compact Attribute is used to define the list should be smaller than normal by reducing the space between the list items and the indentation of the list. It is a Boolean attribute. Syntax:Â <ul compact> Note: The HTML ul compact attribute is not supported by HTML 5 instead o 1 min read HTML | <dir> compact Attribute The HTML <dir> compact Attribute is used to define the list should be smaller than the normal by reducing the space between the list items and the indentation of the list. It is a Boolean attribute.Syntax: <dir compact> Note: The HTML <dir> compact attribute is not supported by HTM 1 min read HTML | <td>colspan Attribute The HTML <td> colspan Attribute is used to specify the number of columns a table should span. Syntax: <td colspan="number"> Attribute Values: It contains the numeric value which specifies the number of columns a cell should span. Example: This Example illustrates the use of colspan attri 1 min read HTML | <td>colspan Attribute The HTML <td> colspan Attribute is used to specify the number of columns a table should span. Syntax: <td colspan="number"> Attribute Values: It contains the numeric value which specifies the number of columns a cell should span. Example: This Example illustrates the use of colspan attri 1 min read HTML | <th> colspan Attribute The <th> colspan Attribute in HTML is used to specify a number of columns a header cell should span. Syntax: <th colspan="number"> Attribute Values: It contains single value number which contains the numeric value to sets the number of column a header cell should span. Example: This exam 1 min read HTML | <td> char Attribute The HTML <td> char Attribute is used to specify the alignment to the character of content in a table cell. This attribute only contains char align attribute. Its default value is a decimal point for page language. It is not supported by HTML 5. Syntax: <td char="character"> Attribute Val 1 min read Like We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy Got It ! Improvement Suggest changes Suggest Changes Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal. Create Improvement Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all. Suggest Changes min 4 words, max Words Limit:1000 Thank You! Your suggestions are valuable to us. What kind of Experience do you want to share? Interview Experiences Admission Experiences Career Journeys Work Experiences Campus Experiences Competitive Exam Experiences