Solved

<link rel="????"> tag

Posted on 2002-03-21
6
236 Views
Last Modified: 2010-04-09
<link rel="????"> tag

okay, what exactly does this tag do?
0
Comment
Question by:ckaneta
6 Comments
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 6886016
It does a whole bunch of things depending on the value of the rel property:

See here for more detail:

http://www.blooberry.com/indexdot/html/tagpages/l/link.htm

Cd&
0
 
LVL 3

Author Comment

by:ckaneta
ID: 6886078
ok, but it still doesn't tell me specifically what it does.

for instance:
<link REL="STYLESHEET" HREF="http://www.company.com/mystyles.css" TYPE="text/css">
would putting something like this on a page load the file mystyles.css along with the webpage?

and this
<link TITLE="Here is my home page" REL="HOME" HREF="myhome.htm">

if I put that in an html doc, what would be the result?
would it display myhome.htm too?
0
 

Accepted Solution

by:
taftman earned 75 total points
ID: 6886382
<link rel="stylesheet" href="foo.css" type="text/css">

This will load the mentioned CSS document (foo.css) along with the HTML page into the clients browser.

"LINK" causes the parent file to have a relationship with another document.  In this case, with the CSS document your browser knows what it is and reacts properly, as I understand it... not too many other uses are supported yet.

hope that helps
- rob
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 22

Expert Comment

by:CJ_S
ID: 6888534
CSS is a way to adjust your styles.

For example you can put in a css style which sets the font for the whole website.

CJ
0
 
LVL 3

Author Comment

by:ckaneta
ID: 6888977
ok, I have an understanding of css...

what I'm most curious about is this:
<link TITLE="Here is my home page" REL="HOME" HREF="myhome.htm">


basically is it doing something constructive, or is it just taking up space?


-- if it actually is doing something constructive, what is it doing?
0
 

Expert Comment

by:taftman
ID: 6889090
<link TITLE="Here is my home page" REL="HOME" HREF="myhome.htm">

This is a "REL" link which is a forward link, I'm unsure of the relevance of a forward link versus a reverse (rev) link.  This code relates "myhome.htm" to the current page and what happens next is sorta up to the browser.

The W3C reference has more detailed information:
http://www.w3.org/TR/html401/struct/links.html#edef-LINK

It seems pretty self explainatory, I hope this helps.

- rob
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
HTML5 save .Dat to server side 20 50
One field not displaying content (ASP Classic) 8 29
How to combine and minify CSS and JS files 5 15
Insert Button on a table 16 36
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question