mozilla

Revision 233660 of HTMLDivElement

  • Revision slug: DOM/HTMLDivElement
  • Revision title: HTMLDivElement
  • Revision id: 233660
  • Created:
  • Creator: McGurk
  • Is current revision? No
  • Comment Code cleanup; 10 words added, 2 words removed

Revision Content

{{ DomRef() }}

HTML div element interface

DOM div (document division) objects expose the HTMLDivElement (or {{ HTMLVersionInline("4") }} HTMLDivElement) interface, which provides special properties (beyond the regular element object interface they also have available to them by inheritance) for manipulating div elements. In {{ HTMLVersionInline("5") }}, this interface inherits from HTMLElement, but defines no additional members.

Properties

Name Type Description
align {{ deprecated_inline() }} in {{ HTMLVersionInline("4") }}, {{ obsolete_inline() }} in {{ HTMLVersionInline("5") }} DOMString Enumerated attribute indicating alignment of the element's contents with respect to the surrounding context.

See also

  • {{ HTMLElement("div") }} HTML element

Revision Source

<p>{{ DomRef() }}</p>
<h2>HTML div element interface</h2>
<p>DOM div (document division) objects expose the <a class=" external" href="http://www.w3.org/TR/html5/grouping-content.html#htmldivelement" rel="external nofollow" target="_blank" title="http://www.w3.org/TR/html5/grouping-content.html#htmldivelement">HTMLDivElement</a> (or {{ HTMLVersionInline("4") }} <a class=" external" href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-22445964" rel="external nofollow" target="_blank" title="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-22445964"><code>HTMLDivElement</code></a>) interface, which provides special properties (beyond the regular <a href="/en/DOM/element" rel="internal">element</a> object interface they also have available to them by inheritance) for manipulating div elements. In {{ HTMLVersionInline("5") }}, this interface inherits from HTMLElement, but defines no additional members.</p>
<h2>Properties</h2>
<table class="standard-table"> <tbody> <tr> <th scope="col">Name</th> <th scope="col">Type</th> <th scope="col">Description</th> </tr> <tr> <td><code>align</code> {{ deprecated_inline() }} in {{ HTMLVersionInline("4") }}, {{ obsolete_inline() }} in {{ HTMLVersionInline("5") }}</td> <td><a href="/En/DOM/DOMString" title="En/DOM/DOMString"><code>DOMString</code></a></td> <td>Enumerated attribute indicating alignment of the element's contents with respect to the surrounding context.</td> </tr> </tbody>
</table>
<h2>See also</h2>
<ul> <li>{{ HTMLElement("div") }} HTML element</li>
</ul>
Revert to this revision