Target Attribute
Overview The target attribute indicates how to open the document linked. It can be opened in the same window, same or a specific frame. Note: target is an optional attribute. If this option is not set, the links will open in the same window. Syntax & Example <a href=”example.html” target=”_self|_blank|_parent|_top”> For instance, if you are […]
Download Attribute
Overview The download attribute specifies that the target will be downloaded when a user clicks on the hyperlink. The value of the attribute will be used for the name of the downloaded file. There are no limitations on allowed values. File extension (.html, .png, .jpg, .pdf, .txt, etc.) will be automatically detected by the browser […]
Type Attribute
Overview A type attribute specifies the nature of a linked file or a document. Content types are case-insensitive. Note: type is an optional attribute. Syntax & Example <a href=”example.png” type=”file_type”> For instance, if you are going to link to a .PNG file, type attribute should read as follows <a href=”example.png” type=”image/png”> Content Type Examples Following are […]
Hreflang Attribute
Overview The hreflang attribute specifies linked document’s language. Note: hreflang is an optional attribute, however its use is advised. Syntax & Example <a href=”example.html” hreflang=”language_iso_code”> For instance, if you are going to link to a French document, hreflang attribute should read as follows <a href=”example.html” hreflang=”fr”> ISO Country Codes Language ISO Code Abkhazian ab Afar […]
Link Overview
Definition and Usage The HTML <a> (an anchor) tag creates a hyperlink (link) to files, emails, telephone numbers, SMS messages, a section of a web page being viewed, web pages on the same or external website via its href attribute. Here are some of the known and less known attributes of the anchor tag. Link […]