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

Should you use the B or STRONG Tags

We learned so far a few new tags at this stage we are ready to start talking about tags that are associated with styling. In this course we are not going to go into CSS but it would be a great things to know to become a great HTML developer. saying that knowing JavaScript and CSS will help elevate your HTML pages.

Getting that out of the way lets talk about bolding. There are two ways to bold content in HTML. One is by using the B tag and the other is by using the Strong tag. In this video we see how we create the B and Strong Tags.

Why are there two ways to do the exact same thing?

After creating them we will talk about there meaning and understand that the B tag is mainly used to mark thing as bold but has no real meaning to search engines and to accessibility users while the strong tag represents the essence of the page - the most important content in it.

Video Transcript

00:01We learnt so far a couple new tags, it's time for us to learn a couple more
00:05We're going to start now going into the more of styling type of tags,
00:09Before we go into them, one thing that's important to notice
00:12that although we're only learning HTML on this course,
00:15there's another thing that we need to learn, if we really want to design pages,
00:19which is CSS, we're not going into CSS because we don't want to mix too many things together
00:24and make this course complicated but it's definitely a skill that you want to learn as well,
00:28to become a really good HTML developer,
00:30because you really need to know HTML and CSS
00:33and if you're up to it, also to know some JavaScript,
00:36to really get the most you can out of a web page.
00:41We're going to focus on the styling tags,
00:43now that I gave you that kind of warning.
00:46One of the most common styling tags in HTML in general
00:49is bolding. Bolding could be done in a couple of ways,
00:53You can see that in our blog, for example,
00:55we bolded out: the power in your hands, once a week we ... blah blah blah...
00:59so we can bold it out or ... I bolded out the word: you
01:03to make sure, that you are aware that you're the thing that's most important
01:08I'm going to show you two different ways of creating boldness in HTML
01:12One is using the 'B' tag,
01:14and the other is using the strong tag,
01:17I'm going to go into our editor, and let's find a word 'you'
01:21and we're going to go into that 'you are' and I'm just going to bold it
01:24by putting a 'b' around the letter,
01:29and for our: 'the power is in your hands' again
01:31I'm going to go inside of the paragraph itself,
01:35by the way, do you know why I'm not doing bold outside of the paragraph?
01:39Because it's more logical, it wouldn't be illegal for me to do 'b' here,
01:43as long as I close my B outside of my paragraph,
01:47but it doesn't make sense to do that,
01:49it makes more sense to do it inside of the paragraph,
01:51because we might not want to bold up everything,
01:54for example, in here we do bold everything in our blog,
01:57so we're going to bold everything,
01:59but instead of using the bold tag, the 'B' tag that we just learnt
02:05We're going to use the 'strong' tag.
02:09and we're going to close the strong tag right before we close our paragraph,
02:19so we opened our 'stong' we closed our strong,
02:24and everything from here to here should be strong, or bolded,
02:27we're going into our html, we click on refresh,
02:33we'll see that now this is bolded and we could also see the word 'you' is bolded,
02:38although they look exactly the same way,
02:41I'm going to throw you into the water, even though you don't know about it yet,
02:45if you would have to guess, why would there be two different ways doing exact same thing,
02:49why would there be the B tag and the strong tag?
02:52- I think that the strong tag is to say something powerful, that's what I think,
03:01-you're definitely in a right direction,
03:03Well, basically the B tag says nothing, it just says 'make it bolder'
03:07some browser won't make it bolder,
03:08for example if you ever used...
03:10did you ever on your phone use one of those News aggregators
03:13or google, or when you go into article but that article google didn't write,
03:18or in an application where they didn't write the article,
03:21they've basically fetched the information from different browsers and just displayed it for the users
03:25They usually get rid of all the different indicators or bolding
03:28or whatever because they want to get rid of all that extra fluff
03:32What the bold does is just literally make something bold without giving any meaning behind it
03:37You're just saying bold, for example, we don't have any meaning really for a browser,
03:41we're not trying to tell the browser that the word 'you' is important,
03:44we just want to make sure that when someone is reading it,
03:47they see that they're important to us,
03:49but for the browser the word 'you' means nothing,
03:51so we didn't really want to give meaning to it.
03:55If a blind user was on our website, they can't see
03:59but they do understand gestures that are happening behind the scenes as well,
04:03so if we just bolded it for the sake of bolding it,
04:05when the text reader of the blind person would read it out?
04:10it wouldn't read it out as something more important than anything else,
04:13it would just read it out as a part of the sentence,
04:16When you use strong, you basically saying: this is the most important thing you want to read in this page,
04:24if you only want to take a clip off of this page, you probably want to go here
04:28because here is the juicy part, this is the most important element of this page
04:32And that's literally what it is, it's both for the search engines
04:35to make sure that, we tell them what we think is most important thing on the page,
04:39and it's also for the users that are disabled or users that are getting out applications through a third party,
04:45if they render it through News aggregator or anything of that nature,
04:51Highlighting may not be included, through this way we are enabling users to use it
05:01but that makes sense. right?
05:02So we have the bold, we have the strong,
05:03the bold has no meaning but the strong does,
05:08and you want to kind of thing about it,
05:09if you were a blind user or you want to accommodate to a blind user reading your page,
05:14do you think it's worth it of being strong,
05:16Don't do it only for Search Engine Optimization.
05:19Don't be one of those evil people, that don't care about minorities and blind people,
05:25Be want of those people that build their pages and think fairly about how to make sure
05:30that your page is the most accessible to the most people that you can,
05:32so when you use bold, you're just bolding it for your marketing purposes
05:36when you're using strong you're telling that whoever is reading this page,
05:41please, read this. This is more important.
05:44So that's the bold and the strong. In our next video
05:47we're going to continue exploring a few other really fun ways to change the look of your HTML

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!