<LINK> Tag & its Attribute

HTML Tag <LINK>

<LINK> Establishes relationships between the current document and other documents. Use this tag within the <HEAD> section. For example, if you access the current document by choosing a hyperlink from the site’s home page, you can establish a relationship between the current document and the site’s home page (see the REL= attribute). At this time, however, most browsers don’t use most of these relationships. You can place several <LINK> tags within the <HEAD> section of your document to define multiple relationships. With newer implementations of HTML, you can also use the <LINK> tag to establish information about Cascading Style Sheets. Some other relationships that the <LINK> tag defines include the following: CONTENTS: A table of contents. INDEX: An index. GLOSSARY: A glossary of terms. COPYRIGHT: A copyright notice. NEXT: The next document in a series (use with REL=). PREVIOUS: The previous document in a series (use with REV=). START: The first document in a series. HELP: A document offering help or more information. BOOKMARK: A bookmark links to a important entry point within a longer document. STYLESHEET: An external Style Sheet. ALTERNATE: Different versions of the same document. When used with lang, ALTERNATE implies a translated document; when used with MEDIA, it implies a version for a different medium.

Attribute of <LINK> Tag

HREF

Indicates the relative or absolute location of the resource you are establishing a relationship to/from.

<LINK REL=Prev HREF="page1.html">


Possible Values

URL



MEDIA

Specifies the destination medium for style information. It may be a single type or a comma-separated list. Media types include the following: Screen—for online viewing (default setting) Print—for traditional printed material and for documents on screen viewed in print preview mode Projection—for projectors Braille—for Braille tactile feedback devices Speech—for a speech synthesizer All—applies to all devices

<LINK MEDIA=SCREEN REL="STYLESHEET"
HREF="css/style.css">


Possible Values

Screen, Print, Projection, Braille, Speech, All



NAME

Specifies a name by which bookmarks, scripts, and applets can reference the relationship.

<LINK REL="Search" HREF="/search.html"
NAME="Search">


Possible Values

Any Name.



REL

Defines the relationship you are establishing between the current document and another resource.

<LINK REL=Help HREF="/Help/index.html">
<LINK REL="StyleSheet" HREF="sitehead.css">


Possible Values

HELP, STYLESHEET



REV

Establishes reverse relationships between the current document and other resources. One common use is REV="made", after which you can set the HREF= attribute to a mailto: URL to contact the author of the document.

<LINK REV=made
HREF="mailto:dinesh@cs-tutrial.com">


Possible Values

made



TARGET

Specifies the name of a frame in which the referenced link appears.

<LINK TARGET="_blank" REL="Home"
HREF="http://www.cs-tutorial.com/">


Possible Values

_blank,self,frame name



TITLE

Specifies text assigned to the tag that can be used for context-sensitive help within the document. Browsers may use this to show tool tips.

<LINK REL=Top HREF="/index.html"
TITLE="Home Page">


Possible Values

Any Name.



TYPE

Specifies the MIME type of a Style Sheet to import with the <LINK> tag.

<LINK REL=STYLESHEET TYPE="text/css"
HREF="/style/main.css">


Possible Values

MIME Type.




CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz