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

Creating Abbreviations with ABBR tag

In the next cluster of videos we will be working with tags that there main goal is to help us define words or languages. The first among these tags is the ABBR tag. The ABBR tag enables us to define an abbreviation that once a user rolls over it would show case the actual fully qualified meaning of it.

Video Transcript

00:00In this cluster of videos we're going to be talking about a few tags
00:03that are used to help to find elements or to find things, define language.
00:08The first one among them will be the 'ABBR' which stands for abbreviation
00:14so the way we create abbreviation, I'm going to select your some words,
00:18let's do the United States, as an abbreviation,
00:21so it's ABBR and inside of our ABBR tag we'll write USA, which stands for United States of America
00:30To add the definition, actually to break down of that word of that definition we'd add a title attribute
00:37and in that title attribute we could write United States of America
00:44Now some browsers when you roll over the element, might show you even that term in detail
00:48in case the user doesn't really know what it is, but it's just a good practice to define this stuff
00:54to make sure that browser know what the definition or the term is
00:59and maybe also user if it's spelled in that way on the browser
01:02So if we save this document and we open up our browser and in the browser we'll see USA
01:09and even if you roll over it and hang for a bit, we're using Safari,
01:13You'll see that it shows us United States of America which is exactly what we hoped it would show
01:18So that's how we define, and I'm going to get back into ourr editor , that's how we define
01:23an abbreviation, it's a very convenient way of typing less but then enabling the user to expand that information
01:31and see what that abbreviation means if it's not a familiar abbreviation
01:34and this could be included into any paragraphs or any copy really in any place in the document
01:39you could have a paragprah and in it "I live in the USA"
01:49or usually you say 'I was born in the USA' right ?
01:52-I live there, I was born there,
01:54-or in Hawaii...
02:00Let's continue onwords, so we have a paragraph, we've put inside of it an ABBR which is an abbreviation

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!