Share on Google+Share on Google+

Anchor tag attributes in HTML5, Define the 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:



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


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

Download this code



Posted on: August 31, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial 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.