DevelopPHP
home gear home donate
Search Results For
in:

Libraries book

HTML Library CSS Library JavaScript Library PHP Library

Videosbook

PHP and MySQL JavaScript HTML and CSS Vector and 3D Flash Actionscript Android Dev Miscellaneous

Resourcesbook

Website Hosting Developer Q+A
HTML a Element

The HTML <a> element is used to create navigation links to different pages in your website, pages on other websites, image links, open email software, fire off Javascript, as well as snapping to pinpoint locations inside of very long web pages. You can wrap small portions of text or whole elements with the anchor tag.

Link menu system courtesy of a <ul> listing element:

HTML CODE EXAMPLE
<ul>
  <li><a href="http://www.developphp.com">COM</a></li>
  <li><a href="http://www.developphp.net">NET</a></li>
  <li><a href="http://www.developphp.org">ORG</a></li>
</ul>
 

 

Email Link (opens user's default mail program):

HTML CODE EXAMPLE
<a href="mailto:me@nameofsite.com">
  me@nameofsite.com
</a>

 

 

Email Link With Pre-Filled Content:

HTML CODE EXAMPLE
<a href="mailto:me@nameofsite.com?subject=Help Me&body=Dear Adam, etc...">
  Email Me
</a>

 

 

Image Links:

HTML CODE EXAMPLE
<a href="my_pic.jpg"><img src="my_pic.jpg" alt="Image Link" /></a>

 

Named Anchor Links:

HTML CODE EXAMPLE
<a name="doc_point_1"></a>
<a href="index.html#doc_point_1">Go to my Point 1</a>

 

Link to a destination file in the same folder:

HTML CODE EXAMPLE
<a href="anyfile.html">Click Me</a>

 

Link to a destination file in a relative folder:

HTML CODE EXAMPLE
<a href="folder_name/anyfile.html">Click Me</a>

 

Link to a destination file in the parent folder:

HTML CODE EXAMPLE
<a href="../folder_name/anyfile.html">Click Me</a>

 

Attributes for this element:

href - where to navigate the user
Possible Values: "relative or full URL string"

target - determines how the window is opened for the destination
Possible Values: "_blank", "_self", "_parent", "_top"

title - advisory text that pops up when the user mouse hovers over the link
Possible Values: "you define text"

rel - specify relationship between the linking file and the destination file
Possible Values: "space separated token list"

hreflang - language of the destination file
Possible Values: "valid language code"

type - mime type of the destination file
Possible Values: "valid mime type"

global attributes - global core attributes
See: list of global attributes

 

Events handlers for this element:

global event handlers - global event handler attributes
See: list of global event handlers

 

Home   •   Terms of Use   •   T-Shirts   •   RSS   •   Testimonials   •   Subscribe   •   Classroom Chalkboard   •   Developer Q+A   •   Donate   •   Top ↑
Popular In PHP / MySQL E-Commerce Store Production
Social Network Website Building
Image Upload / Photo Processing
CMS Software Programming
Mass Email Systems
Magic XML Data
Search Programming
Popular In JavaScript JSON Programming
Ajax Programming
Animating Elements
WYSIWYG Programming
Date/Time Programming
DOM Scripting
Object Reference
Popular In HTML Canvas Element
New Form Elements
Audio Element
Video Element
Drag and Drop
Event Handling
Element Grouping
Popular In CSS Custom Font Embedding
Dynamic Fit Backgrounds
Theatre Mode
Box Overlays
CSS Level 1 Properties
CSS Level 2 Properties
CSS Level 3 Properties
DevelopPHP.com is a growing educational system packed with video and written material that you can access 24/7 100% free. The focus here in 2014 is spread between five technologies: HTML, CSS, JavaScript, PHP and MySQL. Learn programming theory, database interaction, web design, animation, graphics editing, vector art, 3D modeling, and much more. The educational experience here is a hybrid one offering both high quality video tutorials and code libraries that grow more robust every day. The code libraries are being assembled so that developers can discover all of the building blocks of their favorite languages. The libraries coupled with high quality video tutorials will take you deep down the rabbit hole very quickly. You can also ask questions and get free advice at WebIntersect.com.
HTML5