02Geek HTML5 and JavaScript, TypeScript, React, Flash, ActionScript online School
Previous VideoNext Video

Why is it important to set your rel type in html?

How do we tell search engines the value of a link. What if the link has no value to us and we don't want search engines taking our "juice" away - in this video we will learn all about that and more.

Video Transcript

00:00Welcome back.
00:01We talked about iframes, we talked about href,
00:04I want to talk a little bit about something that's called 'rel'
00:09There's other attributes but we're not going to go into every single one of them
00:12because the goal is just to get you with the stuff that you really need on the daily basis
00:16I do encourage you to be familiar with all the different possibilities of the tags
00:20it empowers you as a developer or designer
00:24The tag 'rel' is really important mainly for SEO
00:28The idea of it is to tell people what is your relationship with that link,
00:32because you want to make sure that basically if you're linking somewhere and it's not really a site
00:37that you want to let search engines,
00:39you're basically telling search engines what is your relationship to that link,
00:43Now the most common thing that you want to put inside is 'nofollow'
00:46when you say nofollow you're saying to the search engines: this is not my site, it's not our property
00:52please don't give our score to that site because search engines give websites scores
00:58to be able to figre out what position it will be.
01:00So the rel - nofollow basically tells search engine
01:03'although we put a link here that doesn't mean we want to give away our credit to this website'
01:09So that's the rel- nofollow
01:10there's a couple of other ones and I'm going to write here couple of other options,
01:17and really there's quite a few options but I'm just going to post them right there,
01:23so you could then later on go inside and then check them out
01:27but really that is the most important one,
01:31there's other ones as well. I didn't paste all of them because the most important thing was
01:34the rel 'nofollow'
01:36If you have a document that may be describing something and maybe there's a link that's so helpful
01:40to send users to that page for more information and you might want to tag it with 'help'
01:44some people I see write there its sponsor or commercial even if it's not an official tag
01:51Search maybe because you're going to a search engine and you're going to search something
01:55Next or Previous maybe because there's a relationship and that could be important
01:59such as, you read an article and you splitted it in half and the next article is the continuation
02:03so you'd want to tag it with 'next' or 'previous' so users and search engines would know
02:07that's a continuation of it.
02:08These are the things that are happening behind the scenes,
02:11and that's really all I wanted to say about links in general, that's all you really need to know
02:16at this stage and once you become more confident as developer I'm sure you'll dig deep into this stuff
02:21and find more stuff but these are the most important things related to searches and 'a' tags
02:25and iframes in general

Ready to Level Up Your Skills?

Join thousands of learners on 02GEEK and start your journey to becoming a coding expert today!

Enroll Now for Free!