<link rel="stylesheet" type="text/css" href="">

  • IE
  • Cr
  • Sf
  • Fx
  • O

This LINK element defines a link to an external CSS file.

The LINK element is placed inside the HEAD element.

<link rel="stylesheet" type="text/css" href="style.css">

Attribute Value Explanation
rel=" " stylesheet -
type=" " text/css MIME type
href=" " URL the URL of the CSS file
media=" " media type names specifies the medium

About the media attribute

The media attribute specifies the medium to which the style sheet should be applied.

The value is a single or comma-separated list.

<link rel="stylesheet" type="text/css" href="style.css" media="screen">
<link rel="stylesheet" type="text/css" href="style.css" media="screen, print">

screen for computer screens
tty for fixed-pitch character grid displays
tv for television-type devices
projection for projectors
handheld for handheld devices
print for printers
braille for braille tactile feedback devices
aural for speech synthesizers
all for all devices


<title>TAG index</title>
<link rel="stylesheet" type="text/css" href="style.css">