Select the text. Bold font. HTML-manual for beginners

Computers

One of the easiest ways to isolatetext word or phrase - use another lettering. So you can emphasize the word or phrase using bold typeface. HTML-markup of the page with ease allows you to select words using a different outline - italic, underlined, fat.

bold type html

Bold type as a way to highlight the main

The brightest and brightest words are the wordswith the help of bold type. Such words and phrases are immediately evident. So, in order to learn how to quickly select the right places in the text, you should remember the special HTML-code. Bold is set using the <b> </ b> paired tag.

Before the word or phrase, the sentence thatshould be highlighted, put the opening tag <b>. After the last letter in the text to be highlighted, the closing tag </ b> is placed. All that happens between these two tags, when displayed in a browser, is a fat image.

Other selection options

html code bold

So, we found out that you can select the text withusing another outline. It was determined that it is most simple and at the same time efficient to use the bold HTML font. Now let's talk about other options for selection.

So, you can select the text in italics using the <i> </ i> paired tag, emphasize it with <u> </ u>. These are the simplest ways of selecting text.

There are also less well-known and used tags, withUsing which you can select words and sentences in the text. So, in order to cross out the text, it is enough to use <s> </ s>. The paired <tt> </ tt> tag will make the text monospaced. If you need to create a superscript, use <sup> </ sup>, the lower one is <sub> </ sub>.

In this case, as before, the text you need should be between the opening and closing tag. As you can see, there is nothing complicated, the main thing is to remember these codes or write them down.

Using multiple fonts

If you want to make the text more expressive,you can use not only bold type. HTML markup allows you to simultaneously select a word using several outlines. So, you can simultaneously make the word bold, crossed out and italic.

Tag bold html

In this case, one thing needs to be remembered: all tags should be closed sequentially. For example, the correct entry might be:

  • <i> <u> <b> selected text </ b> </ u> </ i>.

If you close the tags in a different order, the text will not be highlighted correctly. Example of erroneous entry:

  • <i> <u> <b> selected text </ u> </ b> </ i>.

In this case, the browser will get confused and will not understand what exactly you want from it.

By the way, here it can be noted that three optionsInscriptions - bold, underlined and italic - are remembered fairly easily if you own hot keys in Word. There, the shape is set using the same letters-keys when Ctrl is pressed.

As you can see, you can use not only cursive or bold typeface. HTML markup allows you to select words as easily as ordinary Word.

conclusions

To highlight the text,only a variety of colors and shades, different font size and type, but also its outline. And it is with the help of another outline that it is possible to select a fragment of the text beautifully and easily.

To change the font style, you should use any tag known to you. The bold type of the HTML page is the brightest and most noticeable, and therefore it is used most often for selection.