Quackit Logo

Got a MySpace Page?

Get "www.yourname.com" for your MySpace page. Learn how >>.

HTML Link Code

Print Version

The following is an example of html link code. You can copy and paste this code into your own HTML documents - just change the values of the attributes as required.

Example HTML Link Code

<a href="http://www.quackit.com/html/tutorial" target="_blank">HTML Tutorial</a>

This code results in:

Link Code Template

You can use the following template as a basis for your HTML link codes. Simply fill in the blanks or remove uneeded attributes.

For an explanation of all the attributes, see the anchor tag.

<a	href=""
	name=""
	hreflang=""
	type=""
	rel=""
	rev=""
	charset=""
	shape=""
	coords=""
	target=""
	accesskey=""
	dir=""
	class=""
	id=""
	lang=""
	tabindex=""
	title=""
	style=""
	onfocus=""
	onblur=""
	onclick=""
	ondbclick=""
	onmousedown=""
	onmouseup=""
	onmouseover=""
	onmousemove=""
	onmouseout=""
	onkeypress=""
	onkeydown=""
	onkeyup="">Link Text goes here</a>

For various HTML link code usage, check out the HTML links page of the HTML tutorial.

Enjoy this website?

  1. Link to this page (copy/paste into your own website or blog):
  2. Add this page to your favorite social bookmarks sites:
                     
  3. Add this page to your Favorites

Oh, and thank you for supporting Quackit!