- Skip Navigation

Note: This message is displayed if (1) your browser is not standards-compliant or (2) you have you disabled CSS. Read our Policies for more information.

  • Business & Agriculture
  • Residents
  • Government
  • Education
  • Taxes & Finance
  • Visiting & Playing
  • Family & Health

Web CMS Training

State of Indiana

WebCMS Training > HTML Tutorial > Links > Hyperlinks Hyperlinks

Hyperlinks reference (href) web addresses, files, images, media files, etc.  Hyperlinks begin with an anchor and include a destination.  The destination is enclosed in quotes. 

Anchors require a closing tag, but a href is an attribute of the anchor and does not use a closing tag.

<a href=””> Google </a>
<a href=”/files/aboutus.pdf”> About Us </a>
<a href=”/media/movie.avi”> Watch me! </a>

Sometimes a link may need to be opened in a specific frame or a new window.  Because does not utilize frames, the target used the most is a new window (_blank).  The target location is enclosed in quotes and because it is an attribute of the anchor it does not have a closing tag.

<a href=”” target=”_blank”> Google </a>