mozilla

Revision 96659 of HTMLDivElement

  • Revision slug: DOM/HTMLDivElement
  • Revision title: HTMLDivElement
  • Revision id: 96659
  • Created:
  • Creator: McGurk
  • Is current revision? No
  • Comment +-label, +wiki.languages; 37 words added, 18 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 {{ deprecatedGeneric('inline','HTML4.01') }}, {{ obsoleteGeneric('inline','HTML5') }} DOMString Enumerated attribute indicating alignment of the element's contents with respect to the surrounding context.

See also

  • {{ HTMLElement("div") }} HTML element
{{ languages({ "en":"en/DOM/HTMLDivElement", "ja":"ja/DOM/HTMLDivElement" }) }}

Revision Source

<p>{{ DomRef() }}</p>
<h2 id="HTML_div_element_interface">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 id="Properties">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> {{ deprecatedGeneric('inline','HTML4.01') }}, {{ obsoleteGeneric('inline','HTML5') }}</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 id="See_also">See also</h2>
<ul> <li>{{ HTMLElement("div") }} HTML element</li>
</ul> <div>{{ languages({ "en":"en/DOM/HTMLDivElement", "ja":"ja/DOM/HTMLDivElement" }) }}</div>
Revert to this revision