HTML <th> axis Attribute

Example An HTML table with categorized header cells: <table> <tr> <th axis=”name”>Name</td> <th axis=”contact”>Email</td> <th axis=”contact”>Phone</td> <th axis=”contact”>Address</td> </tr> <tr> <td>John Doe</td> <td>someone@example.com</td> <td>+45342323</td> <td>Rosevn 56,4300 Sandnes,Norway</td> </tr> </table> Try it Yourself » Definition and Usage The <th> axis attribute is not supported in HTML5. The axis attribute is used to categorize header cells. The axis attribute can be […]

HTML DOM Details Object

Details Object The Details object represents an HTML <details> element. Note: The <details> element is not supported in Internet Explorer. Access a Details Object You can access a <details> element by using getElementById(): Example var x = document.getElementById(“myDetails”); Try it Yourself » Create a Details Object You can create a <details> element by using the document.createElement() method: […]