At times, you just can’t keep typing the text all in one place like a bunch of paragraphs all stacked together without any spaces or gaps between them. Right? In HTML also, we need to provide some gaps between different paragraphs.
For example, here is a piece of code:
when you run this code, you can expect that the code would be like:
But then you decide to give space and make this in three different paragraphs and then you’ll try doing something like this to your code in hope it would work:
But sadly, when you run it, it would be exactly the same again:
So how do you even add spaces and make text more appealing?
To do this, we use a tag – <br> which can be a mnemonic for break. With this tag you can leave lines and go to the next one.
For instance on using this tag in the previous tag, we get:
It looks like the following:
So we got the breaks, but not actually looks as if we skipped and made it more clear. How to do that? Well you might be right in this case. The answer is to add it multiple times.
Lets do it and test if it works. We’ll add two instead of one:
And this results it:
Now it looks better. Let us try to use more tags and update this content in a far better way.
ADDING THE THREE TYCOONS
There are some specials words and phrases that the user would want its reader to have special attention towards. In that case, as being the most easy as simplistic, Bold, Italics and Underline come in handy.
To apply bold, use the <b> tag where you want to start and the place where you want to end the bold effect, use </b>
Similarly, to apply italics, use the <i> tag where you want to start and the place where you want to end the italics effect, use </i>.
And again, to apply underline, use the <u> tag where you want to start and the place where you want to end the underline effect, use </u>.
Let us try and code it on and understand it by our practical method:
This results in the following case:
So I’m sure you learnt one more thing – making subsequent tags and making them embedded in one other. Not to be confused about embedded content in HTML, which is another term and a story for another time.
QUICK TIP: Always make sure you have proper endings of the tags at required places.
In The Next Part, we’d look forward to formatting, coloring and creating attractive content that anyone would love to read.
MORE TO DO…