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

Exploring HTML Note Tags: Sub, Sup and Small

A group of tags that help us visualize side notes such as sub script and sub script, small text and more.

Video Transcript

00:00We're going to start off with some really basic HTML, everything we have here
00:04you already learnt at some point with us, nothing new nothing major
00:08I want to focus on 3 new attributes. It' going to be called sub, sup and small
00:14they're very easy. I'm going to start and just show you by example,
00:17and basically what they do is for creating a side notes so creating for example
00:22supplemental information that's what for the 'sup' stands for but the basics of it is
00:28if we put a 'sup' it will make the font smaller and push it up to the top,
00:34if we look at this and look inside of a browser we should see that text and we should see that one in the 'who is ben'
00:41and we'll see that it's higher than the regular text and it's a bit smaller
00:45which basically enables us to create sidenotes like you would do in a technical documents
00:50by having that one up here we can now go and add maybe that extra information
00:55maybe right below our paragraph and we could add small which the small would then be a smaller text
01:02than a regular text, the default text at least. where we could write a footnote
01:06so maybe one footnote is: Ben is more than it's written here, he is cool
01:16alright, so that's the small footnote of our document and if we click on refresh we'll then see that our
01:22smaller text is right below making that connection between supplimental one and the actual extra information
01:28Now, there's another option just one more option that I want to look at really quickly
01:33which is called 'sub' which is very similar to 'sup' it's only the exact opposite
01:37I can put a side note for adobe pre-release members, I'll put here another 'sub'
01:44and maybe I'll put here a star and then we could go into out site and sub makes exactly the opposite
01:50only smaller and in the bottom. We could create another small here and in this one we could put a star and say
01:56'a very selective small group of less than 400 people'
02:09small, talk about selling yourself,
02:14So we created a small, if we go into our HTML document and click on refresh
02:18we find that 'adobe pre--release members' you'll see that star underneath instead of its natural position
02:25which should be just above - it's now underneath the copy enabling us to continue and putting our information
02:32By the way we didn't have to separate them into two smalls,
02:35what we could have done very easily as you know html, we could have just broken it with a BR
02:40if we wanted it to break a line because they're one next to each other so that would work as well
02:45Let's save that, go inside, click on refresh and we'll have them broken down in two lines
02:49and there we go, that's all you have to know about subs sups and small
02:53you just learnt 3 news tags let's continue on and learn some more tags
02:58-On the sup, the P - the belly is on the top so you know that the little number will be on the top
03:04and on the 'sub' the belly is like the lower part , like the 'B' is and you'll see the little star on the bottom,
03:12that's how I remember it
03:13that's a great tip

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!