Anchor tag attributes in HTML5, Define the type attribute of anchor tag.


 

Anchor tag attributes in HTML5, Define the type attribute of anchor tag.

this section define the use of type attribute of anchor tag.

this section define the use of type attribute of anchor tag.

 

In this tutorial, we will see the use of type attribute of anchor tag . The type attribute of anchor tag specifies the MIME (multipurpose internet mail extensions) of document in link. MIME extends the format of internet mail.
Example text/plain, text/html, text/xml etc.

Declaration Syntax :

Declaration syntax of type attribute in anchor tag.

                  <a  href="value" type="value">Text Area</a>

Example of target attribute:

Code:

TypeAttribute.html

<!DOCTYPE html>
<html>
<head>
<title>Document title</title>
</head>
<body>
<p><u>Type attribute example of anchor tag.</u></p>
<ul>
<li><a   href="Company.xml" type="text/xml">
Type of MIME is xml.</li>

</ul>
</body>
</html>
Output:

Note: See the browser compatible page for successfully rendering the program.

Download this code

Ads