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

 
 

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

Advertisement

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


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: August 31, 2010

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com