ComputersProgramming

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

One of the simplest ways to select a word or phrase in the text is to 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 as a way to highlight the main

The words highlighted in bold type look most vivid and bright. 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 paired tag.

Before the word or phrase, the sentence that should be highlighted, put the opening tag . After the last letter in the text to be selected, the closing tag is placed. All that happens between these two tags, when displayed in a browser, is a boldface.

Other selection options

So, we found out that you can select the text with the help of another outline. It was determined that the most simple and at the same time effectively use the bold type of HTML. Now let's talk about other options for selection.

So, you can select the text in italics using the paired tag, emphasize it with . These are the simplest ways to select text.

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

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.

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

  • selected text .

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

  • selected text .

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 variants of the inscription - bold, underlined and italic - are remembered quite easily if you own hot keys in Word. There, the shape is set using the same letters-keys when the 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

Not only different colors and shades, different font size and type, but also its inscription are widely used for text selection. And it is with the help of another outline that it is possible to select a piece of text beautifully and easily.

To change the font face, use any tag that you know. The bold type of the HTML page is the brightest and most noticeable, and therefore it is used most often for selection.

Similar articles

 

 

 

 

Trending Now

 

 

 

 

Newest

Copyright © 2018 en.unansea.com. Theme powered by WordPress.