• Afluence
  • Owaranai Kiss
  • Ryuu no Yume
  • Kyzumi Designs
  • Sirenia Designs
  • Solitude
  • Apply?

Site

  • Home Page
  • About the Site
  • Past Layouts
  • FAQ//Contact
  • Linkage
  • Joined
  • Credits & Resources
  • Terms of Use

Designs

  • Icons
  • Pre-made Layouts
  • Textures
  • Transparent Images
  • Desktop Wallpapers

Media

  • Tutorials
  • Emoticons
  • Photoshop Brushes
  • Photoshop Patterns
  • Photoshop Splash

Hyperlinks

...some types of hyperlinks you should know

  • ID: HTML#3
  • Date Added: 2006-18-03
  • Category: HTML
  • Difficulty: Easy

Getting Started

There are various ways to create hyperlinks with various attributes and such. Here's the most popular example:
<a href="YOUR URL HERE" target="_TARGET HERE"">
NAME OF YOUR LINK</a>

I'm pretty sure you're quite familiar with this, let me break it down a little.
  • YOUR URL HERE - is where your URL goes. In case you don't know what a URL is, it's the page you want to show when the link is clicked.
  • TARGET HERE - I'd like to emphasize a bit of care for this section. People tend to ignore it, but I find it very annoying. There are different attributes to a target, and the ones we know are
    • _blank - Opens the page in a BRAND NEW window.
    • _top - Opens the link in the home window.
    • _self - Opens the link in the same window. It's the same as now using the target attribute at all.
  • NAME OF YOUR LINK - It's rather self-explainatory, this is what you're going to call the link.

All your URL should start with http:// unless you're using an absolute URL.

Target Attribute

This part of the link code that bothers me a lot and has led me to creating this tutorial. Firstly, let's look at the types of target we know from above.
  • _blank - Opens the page in a BRAND NEW window.
  • _top - Opens the link in the the old frame.
  • _self - Opens the link on the same window. It's the same as now using the target attribute at all.

It's only proper etiquette to use the target="_blank" attribute when you wish to direct the visitor to a brand new website, or even part of your site that is extended.
However it isn't proper etiquette to place the _blank on every single one of your link and make all the pages show in the new window.
Using the _top, and _self isn't highly recommended because they're either not used at all, or it's supposed to be the _blank attribute.

« back · clear ¦ reload · forward »
eXTReMe Tracker
Akatsuki Designs © Rei [2006-2008]. Site, layout, and content © Rei. All rights reserved. Valid CSS and HTML
Fight Spam! | Spot a typing error? | HostTracker