What are HTML5 Structure Tags
Hey there. This video is all about learning what the html five structure tags are. Okay. They are things like header and main and footer and nav and you can kind of see they're pretty simple. They're just containers that we put stuff in exactly like a div except we give them special names because they do special things. It's pretty easy to do. Let's jump in now. Learn what they are. All right. So what are these html five structural elements basically. Html four. What we used to do is what we've done up until now we would just make a div tag, remember a division of space. It's kind of a box and we'd give it a class name and then start over here in our CSS and that works fine. Okay. We have a box at the top for our heading and a box for our navigation in a box for the main parts. Box in the footer and we just create all these dibs with all these names over here. So what they decided in html five is like, hey, we're reusing these things. Wouldn't it be nice to have an actual tag instead o...
f writing Derby calls blah blah blah. You just write novels. Okay. And at the end we're going to close the nav. Same with this one here. Maybe this is the main part of our content. Okay. We'll just call it main and over here call it main. Okay, spell it right. And over here style, the word main. Okay. So that's what it is. Okay. They're just replacing some commonly used div tags with some pre existing names now, other than that there's not a lot of difference between dives and these kind of predefined names. They're just ready to go. There must be some accessibility options for like screen readers. That that might use this these types of tags that have to do a bit more research and that it's never come up in my work. I'm gonna do this because I'm wrecking this document. So what are these tags? There are some main ones. Okay. They're all kind of suggestions. So I'm at w three schools dot com and here's a bunch of the kind of new structural tags. Okay. And there's basically just a couple of them that get used. You should if you're going to be like the best html five implemented in the world, go through and research them all and using more perfectly. What you'll find is that most people pick the good ones and there's a lot of confusion about some of where you should use some of these and because the like pros and cons, well the the pros aren't huge and for adding them. Okay. Other than it's just a bit clearer, people don't use them. So I guess I want to be honest about that so that we're not so I'm not telling you you have to use these tags now. I made a little handy. Um your exercise files, a little drawing. Why am I drawing these, I could use illustrator. I don't know. I feel like it's proper if I go into wire frames, if you go into wire frames in your exercise file, I've made these two so there's html structure A and B. And I'll show you two really common kind of uses of them. So instead of printing div header, we're just going to use the header tag the nav. This is what I normally do. I throw in a website this outside box, the kind of green one. It doesn't have a name. They should have just put one called container that everybody uses in web design but they didn't. So there's no name for this. Outside one we have to give it a name. But inside of here I often put my header inside of the header, I put my logo over here. There's no specific html tag for logo. So you put that in as a separate element but there is a novel. So I put the knob and they're often on the top right, This big section in the middle. I call it the main okay, well I call it the main it's actually a pre defined. You can kind of see it over here. It's actually a predefined HTML five tag. The weird thing about Maine is that that one doesn't get used very often and I'm like why wouldn't you such a good explanation of what this area is. But anyway, and footer is a really easy one. So that's what I do. I want to show you another way of working that. I see a lot of other sites done. Okay I guess I don't want you to all follow me perfectly because there's different ways of doing it. So again the big blue thing around the outside is doesn't have a specific name, will give a name in a second but hitter. So I wanted to show you this one as well cause header the nav doesn't have to be inside the header to work. You can have the header that could have your logo and some graphics. I don't know what's going up there but you can have your navigation separately. Your navigation could be down the side though. Nobody does that anymore. And then you've got these then you got your footer we've already talked about and you've got these three, these are common enough and a side is pretty easy if you've got a web design where you've gotten, you know, sidebar or something often it's like related articles or latest twitter feeds, you can have this, you can put it inside a div tag called aside, that's clear. Great. These two are the ones that are real confusing so this is how I interpret how it was set out. So you have an article and its unique to that page, it might be a blog post that might be you know you're writing about a topic and then within that article you have sections. Okay. So you might have a main kind of article but you might have some bullet points or like little F A Q. S or kind of pull quot extra bits. Again you might have 10 sections or two sections, but you have a main article, there's arguments on sites where that can be completely the other way around. You have a section and you have articles within the section and you have multiple articles on the page, the documentations not super clear and I guess I wanted to share the unclear Ignace because you might get to one website where they've been very, very deliberate about using articles and then sections within the articles and then you get to another site and they've done something, they've implemented this article section thing completely different and be like, hey, so if that happens if you get you get to the moment um it's not you, it's the internet. Clear, clear, clear, clear. Weird. But a lot of people don't use main, that's why I didn't include it here. Alright, so we've learned what these kind of tags are, just replacements for dives with special names. We are going to go and start building our actual project structure in the next video, see in a sec