Lists
HTML <dir> Tag
Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, Bootstrap, Java, XML and more.
Definition and Usage
Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, Bootstrap, Java, XML and more.
Standard Syntax:
<dir>...</dir>Interactive ExampleRunnable
HTML <dir> Example
htmlLive code demonstration for the <dir> tag. Click "Try it Yourself" to edit and experiment in real time.
<div style="font-family: system-ui, sans-serif; padding: 16px; background: #ffffff; border-radius: 8px; border: 1px solid #e2e8f0; color: #0f172a;">
<ul>
<li>html</li>
<li>xhtml</li>
<li>css</li>
</ul>
</div>Attributes for <dir>
0 Supported AttributesThe <dir> tag does not have tag-specific attributes. It supports all standard Global Attributes.
Global Attributes
The <dir> tag also supports the standard global attributes in HTML, including class, id, style, title, hidden, and data-*.
Event Attributes
The <dir> tag supports event attributes in HTML, such as onclick, onmouseover, onfocus, and more.
Browser Compatibility
ChromeEdgeFirefoxSafariOpera
More Tags in Lists
View All 123Tags →<dd>The <dd> tag is used to describe a term/name in a description list.<dl>The <dl> tag defines a description list.<dt>The <dt> tag defines a term/name in a description list.<li>The <li> tag defines a list item.<menu>The <menu> tag defines an unordered list of content.<ol>The <ol> tag defines an ordered list. An ordered list can be numerical or alphabetical.