What is HTML indentation?

Hypertext Markup Language (HTML) is a character or cascade style (CSS) that causes one or more visual elements to be moved to a certain distance from the edge of its boundary block. The effect of using HTML indentation is the same as the use of indentation in print. The most widespread way to insert indentation into the HTML document is to use CSS to change the text properties in a paragraph containing text. Some formatting commands, such as lists and blocks, automatically indent their content to distinguish them from the surrounding text. Using CSS to insert HTML indent only works on the first line of paragraph and will not work on the entire block that can be achieved with different formatting properties.

The way the HTML standard works, multiple spaces, and the TAB character, which is used in most computers to create indentations, is removed from the files to display. This means that appears formatted in a text processor, will not bee maintain this formatting if it is inserted directly into the HTML document if the text is not inserted into the What-You-See-Is-What-You-Get (WYSIWYG) HTML Editation Program. If you want to have indentation for the first line of the paragraph or to indent the entire block of text, a special HTML and CSS code must be used.

The feature of the textual elements at the CSS block level will indulge in the first non -formatted, rendered item in the block. The amount of indentation must be entered numerically. This option allows the user to enter a number that tells the browser how many pixels, points, centimeters or other forms of measurements should be offset. This number can also be a percentage of the overall width of the block. This CSS option only works at the block level, offering only the first line and will not work on items that already have a predefined type of formatting behavior, such as bullets lists.

HTML httIt is the opposite of the standard offset and pulls out the first line of the block backwards, so it is drawn to the left of the rest of the paragraph line when the text is aligned for reading to the right to the right. The same feature of the text pattern is used to hang HTML indentation, except that the number for the offset amount is negative. This method only works if the values ​​of the edges and the boundaries of the block are large enough to contain suspension indentation.

It is possible to define an indentation of HTML, which moves the entire block or paragraph. This can be done with several CSS properties at the block level, including editing edges or pitch of the container block deeper to the page. This can also be achieved using HTML basic marks, such as Blockquote or PRE, which means a pre -formatted text. The disadvantage of using basic marks to create an indentation of HTML is that the amount to be moved cannot be controlled or explained the set.

IN OTHER LANGUAGES

Was this article helpful? Thanks for the feedback Thanks for the feedback

How can we help? How can we help?