Press "Enter" to skip to content

HTML Tag

Anchor tag Attributes

hreflang – value (anguage_code)

Destination page language is define in this attribute .

Download  – Value (filename)   

Download option with anchor tag will  download the file when someone clicks on the  hyperlink.

HREF- value (URL)

Href attributes used to define destination Page URL .

Media – value (media_query)

It specifies what media the linked document is optimized for



Rel – value (designates 

Stylesheet alternate start next  prev contents index glossary  copyright chapter section  subsection appendix  help  bookmark)

Any one in above  specifies the relationship between the current document and the linked document

Target – value (_blank 

  _parent 

_self _top )

It specifies where to open the linked document.

Type – value (media_type) 

It is use for  the media type of the linked document 

Browser Support

Chrome

Firefox

IE

Opera

Safari

Android

Yes

Yes

Yes

Yes

Yes

Yes