This site has been taken over by the staff of www.ASPDeveloper.Net

Please report errors to suggest@aspdeveloper.net

BizTalk Utilities CV ,   Jobs ,   Code library  
 
Home Page
XHTML
The XHTML <li> Tag
The XHTML <legend> Tag
The XHTML <label> Tag
The XHTML <ins> Tag
The XHTML <input> Tag
The XHTML <img> Tag
The XHTML <iframe> Tag
The XHTML <html> Tag
The XHTML <hr> Tag
The XHTML <head> Tag
The XHTML <h1_h6> Tag
The XHTML <frameset> Tag
The XHTML <frame> Tag
The XHTML <form> Tag
The XHTML <font_style_tags> Tag
The XHTML <font> Tag
The XHTML <fieldset> Tag
The XHTML <dt> Tag
The XHTML <documenttype> Tag
The XHTML <dl> Tag
<< XALAN
XML DOM >>

By :Mark Wilson
I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
First posted :03/24/2008
Times viewed :5968

 

The <link> Tag (XHTML Reference)

Introduction

Note that the <link> tag is not the same as the clickable <a> link tag! The <link> tag defines a relationship between documents. For example you can include a css style sheet with the help of the <link> tag or you can logically create a navigation menu for the “next”, “previous” pages. The link tag is usually included in the <head> section and you can include as many as <link> tags you like.

Example

<head>

<link rel="contents" href="content.html">

<link rel="index" href="index.html">

<link rel="glossary" href="glossary.html">

<link rel="next" href="chapter2.html">

<link rel="previous" href="chapter1.html">

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

</head>

Output

Attributes

Name:

Description:

charset

Defines the character coding of the target url or writes a page on charset.

href

Target URL.
Can be any internet address which starts with: http, ftp, telnet, mailto, etc.

hreflang

Defines the language. You have to provide the language code. Here are some codes:

de = German
en = English
en-us  = English (USA)

en-uk = English (UK)

es = Spanish

fr = French
it = Italian

media

Media is the medium on which the document will be shown. It can one of the following options:

All

Braille

Print

Projection

Screen

Speech

target

Target Frame to load the page into. Can be one of the following:

_blank = new window
_self = same window

_parent = parent window
_top = url will be opened in full body of the window

type

This specifies the mime type of the target URL. Here are few of them:

text/css = used to implement style sheets

text/javascript = used to implement a javascript file

image/gif = used to implement an image

Logical references to target for rel/rev:

With the attribute rel (relationship) you can specify a relationship to the target. The rev attribute (reverse) specifies a reverse link from the target document to the current document. These attributes are used by search engines to provide a linked navigation menu. Both attributes can have one of the following values:

appendix

Reference to the appendix page of the document.

Example:

<a href=”appendix.html” rel=”appendix”>

alternate

Reference to a alternative source.

Example:
<a href=”AltChapter1.html” rel=”alternate”>

bookmark

Reference to a bookmark. Many web blogs use this value in a link to show a permanent link which can be bookmarked.

Example:
<a href=”a href=”index.html” rel=”bookmark”>

chapter

Reference to a chapter from the current listed documents.
Example:
<a href=”chapter.html” rel=”chapter”>

contents

Reference to the table of contents in the current document.
Example:

<a href=”toc.html” rel=”contents”>

copyright

Reference to copyright or the policy of the current document.

Example:

<a href=”copyright.html” rel=”copyright”>

glossary

Reference to glossary page of the document.

Example:

<a href=”glossary.html” rel=”glossary”>

index

Reference to the index page of the current document.

Example:

<a href=”index.html” rel=”index”>

next

Reference to next page from the current document.

Example:

<a href=”chapter2.html” rel=”next”>

prev

Reference to the previous page from the current document.

Example:
<a href=”chapter1.html” rel=”prev”>

section

Reference to a section in a list of documents.

Example:
<a href=”index.html#section” rel=”section”>

start

Reference to the first page of the current documents. Search engines can use this to show the first page.
Example:

<a href=”index.html” rel=”start”>

subsection

Reference to a sub-section in a list of current documents. ( Note that a section can have multiple sub-sections)

Example:
<a href=”index.html#subsection” rel=”subsection”>


Rate this article on a scale of 1 to 10

Your vote :  


 

Recent Jobs

Software Specialist, Linux - Finlan
Linux Core Technical Project Manage
Graphics designer at Tanzania. Expe
Integration Specialist Needed - Wor
Virtualization Server Infrastructur

View all Jobs (Add yours)
View all CV (Add yours)






    Email TopXML  

Front Page Daily Stuff TopXML Forum XML blogs XML Newsgroups BizTalk Biztalk Utilities Biztalk Utilities Tutorial B2B SAP XML Microsoft .NET Dotnet System XML Soapformatter SQLXML XMLserializer XQuery PHP PHP SimpleXML PHP XML Dom PHP XML RPC PHP XSLT Java Java Java XML Xalan Microsoft ASP ASP Schemas XML SQL Server XML XMLDom XSL XSL Tutorial XSLT Stylesheets General Javascript CSS XHTML WAP