Tip:
Highlight text to annotate it
X
Hello YouTube and welcome back to Friday minis!
Today, once again we're gonna delve into the land of text! Now, consider this - When you
are actually typing in a word processor like Microsoft Word or even notepad, when you actually
reach the end of a line, what happens is your word processor actually brings the cursor
down to the next line automatically.
But what's more interesting is, while you're actually typing on a first line and it's quite
near to overflowing, the next word you type only wraps to the next line if it's too long
for that first line.
Now the question is - How do word processors know where to actually make this line break?
First of all, yes - When you actually go to the next line, it's called a line break, but
the more interesting question is, you know, how does it know when to break?
Now, the answer to this is actually pretty simple. Line breaks normally only happen when
your word processor encounters a space or a hypen.
Of course, not for every single one of them, only for those that are at the end of a line.
You see, of course, because if that's not the case, a word can actually be broken in
the middle, and you don't want that to happen.
But today, we actually also want to look at a more interesting thing called a non-breaking
space.
As its name implies, it is a space, however it is non-breaking! What this means is that
a line break cannot be placed at this space, despite the fact that it looks identical to
a normal space you get when you press the spacebar.
How do you type a non-breaking space? Well, we learnt how to do alt codes two weeks ago,
today we're gonna apply that! Hold down alt, and type 0160.
Lift your finger off the alternate key, and what you get is a space! However this particular
space character that you just typed in is a special one!
You can actually try using the non-breaking space instead of your normal space when you
type near the end of a line, and you'll realize that your word processor does not break up
the word at that particular space!
If the word overflows to the next line, the entire chunk is going, bringing the non-breaking
space with it!
Now there are many reasons why we want to have non-breaking spaces. For example, if
you're actually padding things out in a webpage.
If you, while editing the HTML file you keep pressing space, your web browsers aren't gonna
recognize that! They're only gonna see one space!
To actually insert characters that look like spaces but are treated like a normal keystroke,
you'll actually type the " " character, which of course stands for "non-breaking space".
And there you have it! That's all there is for this episode of Friday Minis! Until next
time, don't forget to like, comment, favorite, subscribe and follow me on Twitter!
You're watching 0612 TV!