Home Tutorial Html Html5 Anchor tag attributes in HTML5, Define the type attribute of anchor tag.

 
 

Anchor tag attributes in HTML5, Define the type attribute of anchor tag.
Posted on: August 31, 2010 at 12:00 AM
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

Related Tags for Anchor tag attributes in HTML5, Define the type attribute of anchor tag.:


Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.