HTML DOM HGroup Object


HGroup Object

The HGroup Object is new in HTML5.

The HGroup object represents an HTML <hgroup> element.

Note: The <hgroup> element is not supported in Internet Explorer 8 and earlier versions.

Access a HGroup Object

You can access a <hgroup> element by using getElementById():

var x = document.getElementById("myHgroup"); Try it

Create a HGroup Object

You can create a <hgroup> element by using the document.createElement() method:

var x = document.createElement("HGROUP"); Try it

Standard Properties and Events

The HGroup object also supports the standard properties and events.


Related Pages

HTML reference: HTML <hgroup> tag



Color Picker

colorpicker