HTML text formatting

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

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

Let's start by highlighting the headings and subheadings. The headers are set with the paired <h> tag. In this case, the tag has a digital value from one to six. For example, <h1>. The size of the header depends on the numerical value. The <h1> tag will help to create a header of the maximum size, and the <h6> tag will help to create a minimum. The heading text should be between tags - <h> Heading </ h>.

The paragraph is drawn using the paired <p> tag. In this case, the text should also be between the tags. For example: <p> Paragraph 1 </ p>.

Using the paired <font> tag, you can specify the color and font size. They are determined by special values: font - face parameter, letter size - size, and text color - color parameter.

After each of these parameters, an equal sign is placed, and the value itself is taken in quotation marks. In this case, prescribing the face parameter, you must specify the font name. For example: face = "georgia".

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

html text formatting
The color is indicated using a special code. It can be viewed in any html color table.

Formatting the text also involves aligning it. Correct alignment will help attribute align. It is prescribed both in the title tag and in the paragraph tag, depending on what needs to be aligned. The align attribute has the following meanings: left helps align text to the left. In the center, center will help, right - on the right edge, and justify in width - justify.

At the same time, these parameters, like other 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 paired tags:

- sets the bold face;

- help highlight text in italics;

- underline your text.

When highlighting words, sentences, and paragraphs, you should place text between these tags.

html text formatting
As you can see, not so much you need to know and be able to correctly format text. The main thing is not to forget to close the tags, quote their parameters, and also put an equal sign in front of the parameters. Remember that incorrect display of text is the result of typos and your carelessness.

Making out the written, do not forget to format the text. Html-markup allows you to quickly and efficiently arrange the work by defining its main parameters. This will help you to make the text bright and readable. Help your readers save time and effort when searching for information in the text.

Source: https://habr.com/ru/post/K19574/


All Articles