HTML a type Attribute
HTML <a> tag
Definition and Usage
The type attribute specifies the content type of the target URL (or content
type available in the target document).
Syntax
Syntax Example
Attribute Values
Value |
Description |
MIME_type |
A string that represents the content type of the
target URL/website. A complete list of registered content types can be
found here:
IANA registered MIME types |
Browser Support

The attribute is supported in all major browsers.
Example
Source |
Output |
<p><a type="text/html"
href="http://www.w3schools.com">W3Schools.com</a></p>
|
W3Schools.com
|
Try-It-Yourself Demos
a type attribute
example
Specify the content type of the target document.
HTML <a> tag
 |
|
Get Your Diploma!
W3Schools' Online Certification Program is the perfect solution for busy
professionals who need to balance work, family, and career building.
The HTML Certificate is for developers who want to document their knowledge of HTML, XHTML, and CSS.
The JavaScript Certificate is for developers who want to document their knowledge of JavaScript and the HTML DOM.
The XML Certificate is for developers who want to document their knowledge of XML, XML DOM and XSLT.
The ASP Certificate is for developers who want to document their knowledge of ASP, SQL, and ADO.
The PHP Certificate is for developers who want to document their knowledge of PHP and SQL (MySQL).
|
|