ComputersProgramming

Formatting text in html format

When you design an HTML document, you should not forget about such an important concept as text formatting. Thanks to him, the text will look neat and effective. Of course, you can always leave the default formatting. But in this case, it may turn out that the text will look unpresentable.

So, how to properly format text? First of all, you should select the headings and subtitles, align the position of the text - in the center, width or right (left) edge, make out the paragraphs. Also do not forget to highlight keywords and phrases in the text. In addition, you can choose its color.

Let's start, perhaps, with the selection of headings and subtitles. Headers are specified by a pair tag . In this case, the tag has a digital value from one to six. For example,

. The size of the header depends on the digital value. The

tag will help create the maximum size header, and the

tag will be the minimum. The header text must be between the tags - Header .

The paragraph is formatted with the pair

tag. The text should also be between the tags. For example:

Paragraph 1 .

Using the paired tag, you can specify the font color and size. They are defined by special values: the font is the face parameter, the size of the letters is size, and the text color is the color parameter.

After each of these parameters, an equal sign is placed, and the value itself is quoted. At the same time, when setting the face parameter, you should specify the font name. For example: face = "georgia".

The size of the letters is set by numbers from 1 to 7. Here it is worth noting that the largest font size is 7, and the smallest is 1.

The color is indicated by a special code. You can see it in any html color table.

Text formatting also implies its alignment. The align attribute is used to align correctly. It is prescribed both in the header tag and in the paragraph tag, depending on what exactly needs to be aligned. The align attribute has these values: left helps to align the text to the left. Center will help center, right - on the right, but justify on the width.

In this case, these parameters, like the rest of the values, are quoted and put after the equal sign in the align attribute. For example: align = "left".

When formatting text, do not forget to highlight keywords and phrases. To do this, use the pair tags:

- Specifies a boldface;

- help to highlight the text in italics;

- Underline your text.

Selecting words, sentences and paragraphs, you should place the text between these tags.

As you can see, there is not much you need to know and be able to perform competent text formatting. The main thing - do not forget to close the tags, take their parameters in quotation marks, and also put an equal sign before the parameters. Remember that incorrect display of the text is the result of typos and your inattention.

Making out the written, do not forget to perform text formatting. Html-markup allows you to quickly and accurately complete the work, defining its main parameters. This will help you make the text vivid and readable. Help your readers save time and effort when searching for information in the text.

Similar articles

 

 

 

 

Trending Now

 

 

 

 

Newest

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