Attribute of <LINK> Tag

Attribute of <LINK> Tag

HREF

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

Example:

<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

Example:

<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.

Example:

<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.

Example:

<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.

Example:

<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.

Example:

<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.

Example:

<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.

Example:

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

Possible Values

MIME Type.




CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad