Rel usage in HTML

Source: Internet
Author: User

Let's get to know Rel. In fact, there is not only oneRELThere is also a corresponding property calledRevThese two attributes mean the relationship between the source document and the target document, and from the target document to the source document. The source document here can be understood as the current document where the link is located, and the target document is the document to be opened. Now we should know that Rel and Rev are links to the previous document, rather than how to display the properties of the target document related to the browser. So what is the relationship between rel and Rev? The following describes the meaning of the column:
Next, link to the next document;
Prev, link to the previous document; * P1 G0 V6 K $ T % N $ I * C
Head: Link to the top-level documents in the set ;! A! [7 F0 r$]
TOC, which is linked to the directory of the set;
Link to the source file. 5 N2 J G0 v "a" Y: G
Child, link to the document below the source ;! U'r # R H2 w' I ;{?, R
Index, the index linked to this document; # Y1 M-R2 D # C' G & U0 E
Glossary, which is linked to the glossary of this document; (u. I4 R7 B/N' Q
Here, next and Prev are a group. Indicates that the relationship between the current document and the target document is the same level. You can write it as <a href = "movie_002.htm" rel = next REV = Prev>. A combination of head and TOC can be formed to indicate that a directory is linked to the final document or a document is linked to a directory. A group of parent and child indicates that the current document is linked to the parent or child document. The index and glossary can be combined with the head to form a document to the index, or from the index to the document; from the document to the glossary or glossary to the document.
It may not be clear to say this. The following is an example: I have sorted out a file resource for a movie, so I need to classify these resources. I divide the movie: martial arts films, war films, love films, terrorism films, and documentaries. When the root directory of a movie needs to be linked to the following sub-classes, the link should be: rel = Child REV = parent. If it is the channel page of the martial arts film, when I want to transfer a love film channel or other channels, the link should be: rel = next REV = Prev, when we use a martial arts film to link to the "Crouching Tiger, Hidden Dragon" movie document, the link should be: rel = head REV = toc, when "Crouching Tiger, Hidden Dragon" is linked to the index, the link becomes: rel = index REV = head.
[Currently, CSS cannot capture the attribute values of Rel and Rev, so there is no way to provide different styles for links with different relationships, so now Rel and Rev are only used to make the semantics of web pages more complete.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.