Title & Description
Hey there. This video, we're going to learn what the title is in your head tag. And we're gonna look at what the description is. The very short version is in google search results. That is the title, that is the description. We need to add it to every page. Let's jump in now. Show you how to edit what the pros and cons what you should do. You shouldn't do. Let's get started. Alright, so let's start with the title tag. So this gets added to the top of every page. Okay, in the head I was gonna added they're automatically by V. S. Code. So what is it? It is a way to describe what's on the page. So this word document here is just a placeholder. You can type anything in here. Okay? You'll notice that it's not really cold language you can write and persons and you can write brackets and all sorts of things. It could be anything you want to write in here. You don't want it to just be anything. Let's say this is one of kind of thought that really describes this page. It's learning html descrip...
tion and title tags that that's going to really describe the page I'm trying to build here. Now if I save it and I go out to chrome, let's see where it appears. So chrome, there's the document that I'm working on and you can see the word document there that was from earlier on before we replaced it. If we hit refresh you can see that's where it kind of ends up. That's your title tag. It ends up in the tab but that's not that exciting? Right. What's really important is where that gets used by google and its search results. So remember we did this search earlier on for underlining in. Html. Okay. We did that search, see these chunks of blue text here. Okay. These chunks of blue text are the total tax. Okay. So whatever you write in there will appear in this little list. So you can imagine if you left it as document First of all, the word document, Google is just not going to list your page because it's it's too vague and there's probably a million pages online with the hitting document. So you need to make it unique for every page which is a bit of a pain. Okay, so you've got 20 pages on your website. You need 20 different title tags for each page. Okay. And it needs to really describe what's in that page. It's about 50 characters and you can see some of them get a little bit longer. Some of them are shorter but be really concise and exact about what's in the page. Don't call it like homepage. Okay. If it was me for my site, you know mine is called, you know, web design tutorials by Daniel Scott. It would be a good homepage title tag for me. So that's the title tag. The other tag you should add and it's not there by default. Very common just underneath is adding the description. So what is the description before we make it? It's this chunk. Okay. That there is the title that there is just your website address. Okay. This thing here you have control over, you can tell google what to put in this description. Sometimes it ignores it. Okay. But most of the time it won't it'll listed here. Okay. And this is a bit more marketing than it is like this one here be really concise, really good keywords Okay. That really describe what you're doing down here is kind of like we all know it right when we're doing a result research, we check that to make sure you're kind of in the right ballpark then you use this just to confirm that you are. You know, you get more into the details and just kind of just checking you're in the right sort of zone and this is where more it's more marketing than it is, say, coding. So down in here let's add the meta description. So by default it's not in there because you can't survive without a title but you can survive without a description but in my opinion you should definitely add it. This is where it's kind of some ugly syntax. Okay. But you type it up once with me now and later on, you can just come back and copy and paste this one so it's called a meta name. Okay. And you need to add all that syntax. I'm just using the shortcuts that appear via via code but you need name equals and you need the quote marks and inside of here this one's called description. Okay. And it needs to be spelled exactly like that and we need the name is description, the content is going to be what you want that description to be. So this is where you you get to put so in here you want about 100 and between 100 and 20 characters. Okay. Or 100 and 50 characters. is what generally will appear in mobile mobile results. Okay. And 100 and 50 on desktop. So you can see here this one here got given quite a big chunk, whereas this one got cut off, quite small as it was going to get a really small meta description sometimes as well. It doesn't matter how long you make it google will cut it off. And so make sure all your good stuff is at the beginning of that paragraph, just make it one and make it about 120 ISH characters. Now, the one thing for this is kind of brings up a good point. Can you see this little this guy's going red if I save this and let's view the page, let's refresh it. It's gonna bit crazy. It's like what, what that was in the head tag, was it displaying down here? In the body. It's because we forgot to close out this meta description tag. Okay, so I say we me. Okay, so it has an opening there and can see all of them have this closing angle brackets. So at the end here closing angle brackets, you'll see the red disappears and back here refresh, it's back to normal. Okay, So if you ever have read stuff bad and you're often you'll notice the difference when you get into previewing in chrome, it'll kind of show you everything will go haywire. Alright. That is their metal title, meta description copy and paste that into a note pad. So you've got it handy for when you're doing it next time, so you don't have to type it out every time. Really essential to pages, let's get on to the next video.