← Desenvolvimento

Duvida em relação á tag <LINK> ou <BASE>

Lida 3512 vezes

Offline

Ze-dos-Trukes 
Membro
Mensagens 86 Gostos 0
Troféus totais: 25
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Level 5 Level 4 Level 3 Level 2 Level 1 50 Posts 10 Posts

Pessoal...
Gostava, se possivel, que alguem me explicasse o k faz concretamente o <LINK> ou o <BASE>, nomeadamente nos dois exemplos a seguir:

Código: [Seleccione]
<HEAD>
<TITLE>Reference manual -- Page 5</TITLE>
<LINK REL="Start" href="http://someplace.com/manual/start.html">
<LINK REL="index" HREF="http://someplace.com/index.html">
<BASE href="http://someplace.com/products/intro.html">
</HEAD>


Já pesquisei em alguns manuais etc.. mas n chego a conclusoes ácerca da utilidade prática..

Se alguem ja fez este tipo de questão, pff apaguem ou boqueiem
Offline

MiguelTavares 
Membro
Mensagens 3871 Gostos 0
Troféus totais: 33
Trófeus: (Ver todos)
Avatar Level 6 Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5 Level 4

O LINK REL tem a ver com uma especie de relação, não sei bem como funciona...

O BASE, é a localizacao base para os HREF's
Offline

MiguelTavares 
Membro
Mensagens 3871 Gostos 0
Troféus totais: 33
Trófeus: (Ver todos)
Avatar Level 6 Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5 Level 4

Citar
<LINK> No closing tag.
Definition: Link
Description: Appears in the HEAD of the document. Defines the relationship between the current document and another. Common uses are linking to external style sheets, scripts and search engines.
Isto esclarece-te? ;)
Offline

Ze-dos-Trukes 
Membro
Mensagens 86 Gostos 0
Troféus totais: 25
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Level 5 Level 4 Level 3 Level 2 Level 1 50 Posts 10 Posts

Citação de: "MeNz"
Citar
<LINK> No closing tag.
Definition: Link
Description: Appears in the HEAD of the document. Defines the relationship between the current document and another. Common uses are linking to external style sheets, scripts and search engines.
Isto esclarece-te? ;)

Nem por isso.....
Até aí já tinha chegado..
Mas qual a aplicação prática? o "NEXT" sei k serve para carregar as paginas precedentes para posteriomente evitar estar muito tempo á espera de abrir...
mas as outras k indiquei continuo a n saber em k melhoram o site...  :?
Offline

fpware 
Fundador
Mensagens 15318 Gostos 7
Troféus totais: 38
Trófeus: (Ver todos)
Linux User Mobile User Level 6 Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5

Citar
12.1.2 Other link relationships

By far the most common use of a link is to retrieve another Web resource, as illustrated in the previous examples. However, authors may insert links in their documents that express other relationships between resources than simply "activate this link to visit that related resource". Links that express other types of relationships have one or more link types specified in their source anchor.

The roles of a link defined by A or LINK are specified via the rel and rev attributes.

For instance, links defined by the LINK element may describe the position of a document within a series of documents. In the following excerpt, links within the document entitled "Chapter 5" point to the previous and next chapters:

<HEAD>
...other head information...
<TITLE>Chapter 5</TITLE>
<LINK rel="prev" href="chapter4.html">
<LINK rel="next" href="chapter6.html">
</HEAD>

The link type of the first link is "prev" and that of the second is "next" (two of several recognized link types). Links specified by LINK are not rendered with the document's contents, although user agents may render them in other ways (e.g., as navigation tools).

Even if they are not used for navigation, these links may be interpreted in interesting ways. For example, a user agent that prints a series of HTML documents as a single document may use this link information as the basis of forming a coherent linear document. Further information is given below on using links for the benefit of search engines.


http://www.w3.org/TR/REC-html40/struct/links.html
Offline

DEVAXTATOR 
Membro
Mensagens 57 Gostos 0
Troféus totais: 25
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Level 5 Level 4 Level 3 Level 2 Level 1 50 Posts 10 Posts

Citação de: "Ze-dos-Trukes"
Pessoal...
Gostava, se possivel, que alguem me explicasse o k faz concretamente o <LINK> ou o <BASE>, nomeadamente nos dois exemplos a seguir:

Código: [Seleccione]
<HEAD>
<TITLE>Reference manual -- Page 5</TITLE>
<LINK REL="Start" href="http://someplace.com/manual/start.html">
<LINK REL="index" HREF="http://someplace.com/index.html">
<BASE href="http://someplace.com/products/intro.html">
</HEAD>


Já pesquisei em alguns manuais etc.. mas n chego a conclusoes ácerca da utilidade prática..

Se alguem ja fez este tipo de questão, pff apaguem ou boqueiem

eu uso o rel para style sheets e icons
 <link rel="stylesheet" HREF="stylesheets/home.css">
<link rel="SHORTCUT ICON" href="/favicon.ico">
o base é para frames ou target frame
<base target="frame">
agora se quiseres uma explicação complexa

base
http://www.blooberry.com/indexdot/html/tagpages/b/base.htm

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

já agora o blooberry.com tem explicações para varios termos
Offline

Ze-dos-Trukes 
Membro
Mensagens 86 Gostos 0
Troféus totais: 25
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Level 5 Level 4 Level 3 Level 2 Level 1 50 Posts 10 Posts

Ok..
Obrigado pela ajuda