The HTML <a> type attribute specifies the MIME type of the linked document. It is not widely used, the type attribute can help browsers to understand the type of content that is being linked. It can be beneficial for certain applications and optimizations.
Syntax
<a type="media_type">Attribute Values
- media_type: It specify the Internet media type of the embedded file.
Usage
- Used to create hyperlinks that navigate to external websites, internal pages, or sections within the same page.
- Requires the href attribute to define the link's destination (e.g., a URL, file path, or anchor ID).
- Can open links in the same tab or a new tab using the target attribute (e.g., _self, _blank).
Example: This example demonstrates the use of HTML <a> type attribute.
<!DOCTYPE html>
<html>
<head>
<title>HTML a type Attribute</title>
</head>
<body>
<h2>GeeksforGeeks</h2>
<h3>HTML a type Attribute</h3>
<p>Welcome to
<a href="https://www.geeksforgeeks.org/community/"
type="text/html">
GeeksforGeeks
</a>
</p>
</body>
</html>
Output

Supported Browsers
- Chrome 1
- Edge 12
- Firefox 1
- Opera 15
- Safari 1