What Do 'link', 'rel', & 'href' Stand For? - Codecademy

Skip to ContentProfile image of gbuttersSubmitted by gbuttersover 13 yearsWhat do 'link', 'rel', & 'href' stand for?

In connecting an external CSS file, you have to assign: link, rel, & href. I’m wondering if these are short for something. p, for instance, is a shortening of paragraph. img is for image. Both are intuitive in their abbreviated forms.

link is actually makes sense, since you are linking to a stylesheet. But what do rel and href stand for, and are these three terms used elsewhere in HTML?

Answer 502b9eca4205a9000203d01f

32 votes

Permalink

rel is short for relation. It specifies the relation between the tag and href.

href stands for hypertext reference. It’s the source of the file used by the tag.

You can use both not only when connecting an external css file, also for using <a> tags,for a regular hyperlink. Take a look at this site for more info.

Profile image of nicoekkartSubmitted by nicoekkartover 13 years

2 comments

Profile image of CoderMimSubmitted by CoderMimalmost 12 years

What about type?

Profile image of Khalidsadig96Submitted by Khalidsadig96over 10 years

Thanks alot

Popular free courses

  • Free course

    Learn SQL

    In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.
    • Checker DenseBeginner Friendly.4 Lessons
  • Free course

    Learn JavaScript

    Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.
    • Checker DenseBeginner Friendly.11 Lessons
  • Free course

    Learn HTML

    Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.
    • Checker DenseBeginner Friendly.6 Lessons
Explore full catalog

Tag » What Does Href Stand For