Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML link href Attribute

HTML href property

HTML link Tag Reference HTML tag

Example

Linking to an external stylesheet:

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the href property.


Definition and Usage

The href attribute specifies the location (URL) of an external resource (usually a stylesheet file).


Differences between HTML 4.01 and HTML5

none.


Syntax

  • Relative URL - points to a file within the website (such as href="/themes/theme.css")
  • |

    HTML link Tag Reference HTML tag