Baseline Widely available
The type
property of the HTMLLinkElement
interface is a string that reflects the MIME type of the linked resource.
It reflects the type
attribute of the <link>
element.
A string, which must be a valid MIME type string.
Examples<link
id="el"
rel="apple-touch-icon"
sizes="114x114"
href="apple-icon-114.png"
type="image/png" />
const el = document.getElementById("el");
console.log(el.type); // Output: "image/png"
Specifications Browser compatibility
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4