Open In App

HTML <a> type Attribute

Last Updated : 23 May, 2024
Improve
Improve
Like Article
Like
Save
Share
Report

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.¬†

Example: This example demonstrates the use of HTML <a> type attribute.

html
<!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://ide.geeksforgeeks.org/" 
            type="text/html">
            GeeksforGeeks
        </a>
    </p>
</body>

</html>

Output

HTML-a-Type-Attribute

Supported Browsers

  • Chrome 1
  • Edge 12
  • Firefox 1
  • Opera 15
  • Safari 1

Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads