MDN self-hosted library · e01.org

HTMLLinkElement: type property

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

html
<link
  id="el"
  rel="apple-touch-icon"
  sizes="114x114"
  href="apple-icon-114.png"
  type="image/png" />
js
const el = document.getElementById("el");
console.log(el.type); // Output: "image/png"