A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.cdn.mozilla.net/en-US/docs/Web/API/HTMLAnchorElement/type below:

HTMLAnchorElement: type property - Web APIs

HTMLAnchorElement: type property

Baseline Widely available

The type property of the HTMLAnchorElement interface is a string that indicates the MIME type of the linked resource.

It reflects the type attribute of the <a> element.

Value

A string.

Example
<a id="exampleLink" href="https://example.com" type="text/html">Example Link</a>
<p class="type"></p>
#exampleLink {
  font-size: 1.5rem;
}
const anchorElement = document.getElementById("exampleLink");
const pTag = document.querySelector(".type");
console.log(anchorElement.type); // Output: "text/html"
pTag.textContent = anchorElement.type;
Specifications Browser compatibility See also

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