HTML dir compact property
Examples
Use compact property in the directory list:
<li>html</li>
<li>xhtml</li>
<li>css</li>
</dir>
try it"
Browser Support
Note: Currently, all major browsers do not support the compact attribute.
Definition and Usage
<dir> tag in HTML5 is no longer supported. Use CSS instead.
<Dir> The compact attribute is deprecated in HTML 4.01.
compact attribute is a boolean (Boolean) property.
compact attribute specifies a list showing the effect of smaller than normal, this is by reducing the line spacing and indentation for the list to achieve.
Compatibility Notes
<Dir> The compact attribute is deprecated in HTML 4.01. Use CSS instead.
CSS syntax: <dir style = "line-height: 80%">
CSS Example: to narrow the list row height
In our CSS tutorial you can find more information about the line-height property details of the property.
The difference between HTML and XHTML
In XHTML, the property does not allow short, compact property must be defined as: <dir compact = "compact">.
grammar
HTML <dir> tag