HTML <a> type Attribute

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>w3wiki</h2>

    <h3>HTML a type Attribute</h3>

    <p>Welcome to
        <a href="https://ide.w3wiki.net/" 
            type="text/html">
            w3wiki
        </a>
    </p>
</body>

</html>

Output

Supported Browsers

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

Contact Us