<span id="born">When I was born…</span>Element: tagName property / notebook
Element: tagName property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
const span = document.getElementById("born");
console.log(span.tagName);