![]() |
The DOM HGroup Object is used to represent the HTML <hgroup> element. It can be accessed by using any selector in JavaScript like getElementById(). Syntax: document.getElementById("hgroupid"); The below examples demonstrate the use of the hgroup Object. Example 1: In this example, the background color of the HGroup element is changed to green. HTML
Output: Example 2: In this example, the HGroup object can be created using the document.createElement() method. HTML
Output: Supported Browsers:
|
Reffered: https://www.geeksforgeeks.org
HTML |
Related |
---|
![]() |
![]() |
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 11 |