Last Updated : Apr 15, 2023
To specify how HTML components will be presented, utilize the CSS file.
- To retrieve the HTML head element, use the function document.getElementsByTagName().
- Use the createElement('link') function to create a new link element.
- Set the link element's properties to zero.
- Link elements should be added to the head.
- Then we create a button for clicking the object.
- Then we close program using </body></html>