HTML DOM Label Object

Label Object The Label object represents an HTML <label> element. Access a Label Object You can access a <label> element by using getElementById(): Example var x = document.getElementById(“myLabel”); Try it Yourself » Create a Label Object You can create a <label> element by using the document.createElement() method: Example var x = document.createElement(“LABEL”); Try it Yourself » Label […]

HTML DOM Footer Object

Footer Object  The Footer Object is new in HTML5. The Footer object represents an HTML <footer> element. Note: The <footer> element is not supported in Internet Explorer 8 and earlier versions. Access a Footer Object You can access a <footer> element by using getElementById(): Example var x = document.getElementById(“myFooter”); Try it Yourself » Create a Footer Object […]