Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

HTML | <a> type Attribute

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

The type attribute is used to specify the Internet media type of the linked document. It is used only when href attribute is set. 

Syntax:

<a type="media_type">

Attribute Values: It contains the value “media_type” which specify the Internet media type of the embedded file. 

Example: 

html




<!DOCTYPE html>
<html>
 
<head>
    <title>
        HTML a type Attribute
  </title>
</head>
 
<body>
    <p>Welcome to
        <a href="https://ide.geeksforgeeks.org/"
           type="text/html">
                GeeksforGeeks
            </a>
    </p>
</body>
 
</html>

Output:

  

Supported Browsers: The browser supported by HTML <a> type Attribute are listed below:

  • Google Chrome
  • Edge 12
  • Internet Explorer
  • Firefox
  • Safari
  • Opera
My Personal Notes arrow_drop_up
Last Updated : 19 Jul, 2022
Like Article
Save Article
Similar Reads
Related Tutorials