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

Adding an Underline to Copy in HTML

This time around we will look at the U tag. By the end of this video you will know how to underline copy. It's not recommended to use this as usually underline copy is copy that is set to be a link - and links usually by default have an underline.

Video Transcript

00:01Let's look at another way to enhance our page
00:05This time we're going to look at the 'u'
00:06It's going to be a quick short video which basically 'u' enabes us to underline copy
00:11I would never personally underline copy because underlines
00:15usually means that is a link, so by putting an underline
00:18we're telling people: 'click on me' Because that's what people are accustomed to
00:22when they see something that has underline, they assume it's a link
00:26If I go back into our HTML, I'm going to find something randomly just for the practice right now,
00:36'This is an irresistible deal' - I'm going to make this with a 'u' to make sure that there's underline
00:43underneath that unresistible deal,
00:45Although in reality I would probably never do that
00:47because it would confuse people, it would make you think that this is clickable,
00:51So that was our 'u' . If I go back into our application and I click on refresh, you'll see
00:54'this is irresistible deal' and you could see that you kind of feel like 'I could probably click on this'
01:00but you can't
01:01Let me also get rid of this "A' right here, if we're already doing this and and this extra something that's there
01:08Let's fix that,It's because of our editor, whenever we select something it adds a double quotes
01:23so I have to delete it a couple of times, that's not so bad
01:25Let's see where is the other issue here so if we go back into our browser, refresh
01:30and let's just fix it if we're already going through building our HTML page
01:33so we see this looks good, but we see right after 'gonna happen' , we have some extra fun things
01:42that we don't really want there. I don't really see anything here but it could be something there,
01:49I'm just going to delete everything here and put an extra 'enter' there, we're going to save it,
01:53go back into our browser and see that it got cleaned up,
01:57There's some sort of a character there, from our OpenOffice that shouldn't have been there,
02:01and we sorted that out.
02:03If we're already in that clean up mode let's really clean up this page a bit with the ways we know already how
02:10We're going to put this inside of the paragraph, it's going to be a 'p' tag,
02:16we're going to put this into a P tag as well,
02:20and we're going to put this code into a paragraph as well,
02:27save it and if we scroll a little bit down,
02:31We see here 'No other XML course is in-depth' which is going to be a paragraph as well,
02:37So we could nicely set all of our page into nice paragraphs,
02:40and we still have a few open ends where we're going to cover it in the next couple of minutes,
02:44You could see also this is an illegal characters for HTML,
02:59for example '...' is basically a one character that has 3 dots because Word wants that perfect spacing
03:04between the characters but it wouldn't work in HTML and we don't do it that way,
03:10I'm going to click on save, click on refresh,
03:12by the way I'm not doing a searchin, we're replacing, doing it quickly
03:14because I really want you guys to get used to these issues,
03:17because they happen a lot, especially if you're working with a text editor, which I'm sure you are,
03:21now one way we could avoid that is using your email,
03:24such as using your Gmail when you're writing things
03:27and usually you won't any extra stuff because your Gmail is inside of a browser,
03:30so Gmail doesn't add extra characters that are not legal to a browser,
03:34because you're in a browser,
03:36So there you go, now our page is looking a lot better,
03:39we're slowly getting there. We are done with our 'u' tag that we just created,
03:44we cleaned up our page. I don't see any more issues on our page really,
03:48In our next video we're going to continue exploring a few things such as getting this area cleaned up,
03:54and more similar to the way it was in our original document
03:58if I find our original document, you will see that we this nice little breakdown
04:11we're going to work on this nice little breakdown in the next video to make it nice and clean

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!