Every developer should have a foundational understanding of these HTML DOM Node APIs before taking on web frameworks.
This quick HTML Node guide will cover 21 of the most popular and widely used APIs in the HTML DOM Node:
getElementById(id)
getElementsByClassName(className)
getElementsByTagName(tagName)
getSelection()
getElementsByName
and querySelector(selector)
querySelectorAll(selector)
parentNode.insertBefore(newNode, refNode)
appendChild(node)
createElement(elementName)
createTextNode(textString)
removeChild(childNode)
replaceChild(newNode, childNode)
setAttribute(attrKey, attrValue)
getAttribute(attrKey)
getAttributeNames()
cloneNode()
classList
parentNode
parentElement
innerHTML
innerText
Every developer should have these APIs at their fingertips before taking on web frameworks. Mastering them is the best way to build a foundational understanding of when and how to use the frameworks.
Let’s dive in.
#html5 #html #node #web-development