When making those or other text or even tables, webmasters have to face such a problem as making red lines, margins in text. It would seem that everything is quite simple - copy the text in the right box and padding will be set automatically. But, unfortunately, not so simple. So let's see how to correctly format the text to look beautiful and impressive, and learn how to make an indent in HTML.
Let's Start with the most simple, but at the same time-consuming registration of indents. To resolve this problem, use the space code . Using it at the beginning of the paragraph a few times, you will get a desired indent.
The Advantages of this method is that this code is read by any browser. The lack of one - will be long and tedious to insert spaces in selected text. This method is suitable for those who are just beginning their acquaintance with HTML. Indentation in the table can also be done this way.
The Second method is to place an indent with a pair of tag <blockquote. For this you need to enclose the text you want formatted between the opening and closing tag.
Easier than the first case. But the trouble is, this tag indents only 40 pixels, in addition, when using the indent is defined not only left, but right, top and even bottom. For text is not always beautiful, for the table a way to indent in HTML will be much more effective.
If you want to beautifully highlight the block of information - this tag will suit, if not - I suggest to use the first method or watch the remaining two.
Substitute the word, the letters of which have the same color with the background, that is, at the beginning of each paragraph, insert the word invisibility. Thus it is easy to indent. HTML allows you to write once a special code and insert it at the beginning of each paragraph.
Recommended
How to get out of "Skype" on the "Android" and not only
How to get out of "Skype" "Android"? This question bothers many users. The thing is that the messenger is not so difficult. But there are features that are only for mobile versions. To log out of Skype in this case more difficult than it seems. But i...
Kingo ROOT: how to use the program to gain administrative rights on Android
The Gadgets on the platform Android regained the lion's share of the market. Developers are continually perfecting the OS, trying to fit the needs of the users, but from year to year admit palpable mistake: forbid the owner to "stuffing" of his gadge...
How to get from Stormwind to Tanaris: practical tips
World of Warcraft is an iconic MMORPG, uniting millions of players around the world. There are many locations and puzzles, secret trails and larger, but rather dangerous paths. Sooner or later, every player chose the side of the Alliance, we have to ...
Yes, good solution, but what if your website has a background image or picture? This method is not fit here. And besides, when you highlight the word to be seen. And also remember that this code will be available to all Internet users. In this case, viewing the source of your page, users can stay in disbelief. So I suggest use special tags for processing the indentation. Also note that this version of the design is not quite suitable for tables, although can be used to format text.
And finally, the last way to do a text indent. In HTML this can be done using two simple tags. And the easiest way to do paragraph - to use a combination of two tag - < br > < dd >.
The First tag wraps the text to a new line, forming a paragraph. The second is the tab stop, that is, sets the red line. As you can see, everything is quite simple and clear. Moreover, such recording will be understandable to the majority of users looking at your website and interested in his code.
Use this combination easily, although it will have to insert at the beginning of each paragraph manually. But what to do, not all editors possess the ability to beautifully and correctly format the text.
Finally, let's talk a little bit about the tag < p >. Usually it is used in order to identify in the text the beginning of a new paragraph. However, when using this tag is not saved with a red line in the paragraph, but there is padding between the paragraphs.
In most European countries, this design is common, but whether it suits us? We are all accustomed to the presence of red lines and quite often wonder about how to place an indent in HTML, it is not always easy to read text that is formatted this way.
If you want to make the text more familiar and easy to grasp, suggest to abandon the tag < p > and replace it with a bunch of < br > < dd >. Believe me, it will be much prettier and sleeker than having a blank line between paragraphs. And so you will be able to save some space on the screen.
So we learned how to make the indents. As it turned out, it is not so difficult. The main thing-to know a few useful tags and codes, and also have the patience and free time to arrange them.
To indent in HTML in several ways. We'll examine each of them, highlighted their advantages and disadvantages. Also talked about the fact that a tag < p > not always as useful as we would like.
Article in other languages:
AR: https://tostpost.com/ar/computers/245-html.html
BE: https://tostpost.com/be/kamputary/411-chyrvonaya-radok-afarmlyaem-vodstup-u-html.html
DE: https://tostpost.com/de/computer/408-die-rote-zeile-wir-machen-den-einzug-in-html.html
HI: https://tostpost.com/hi/computers/245-html.html
JA: https://tostpost.com/ja/computers/244-html.html
KK: https://tostpost.com/kk/komp-yuterler/411-yzyl-zhol-oformlyaem-sheg-n-s-html.html
PL: https://tostpost.com/pl/komputery/414-czerwona-linia-sporz-dzamy-wci-cie-w-html.html
PT: https://tostpost.com/pt/computadores/411-linha-vermelha-legalizar-o-recuo-em-html.html
TR: https://tostpost.com/tr/bilgisayarlar/417-k-rm-z-dize-oformlyaem-girinti-html.html
UK: https://tostpost.com/uk/komp-yuteri/413-chervona-ryadok-oformlya-mo-v-dstup-v-html.html
Alin Trodden - author of the article, editor
"Hi, I'm Alin Trodden. I write texts, read books, and look for impressions. And I'm not bad at telling you about it. I am always happy to participate in interesting projects."
Related News
Socket 478: processor, motherboard. Features Socket 478
In August 2001, the “Intel” was forced to hastily introduce a new computing platform in the face of the Socket 478. Moreover, this socket has replaced the two previous solutions - “the Socket 370” and &ldqu...
What is FaceTime and the activation issues and correcting errors
Owners of modern Apple devices know that the latest models preinstalled apps there is a program FaceTime. What is FaceTime, which you need this app, how it work and how to fix some bugs, now and see. There's nothing complicated he...
We live in an era when speed decides everything. If from one hundred to two hundred years ago people were content with sending letters that sometimes took more than one month, or even a year, but now people are accustomed to the f...
What characterizes the WMA format and what it is?
Many people still remember the days when the main program for viewing video on the computer was a standard "media player». Functionality it did not Shine, and the friendliness for inexperienced users did not differ. Onl...
Why can't I install Skype? To Install Skype (Skype)
Today to communicate with family and friends via the Internet is very convenient that you can do for free using a special software. One of such programs is Skype. You can use it anywhere, the main thing that at hand was a computer...
Router D-Link DIR-620: review, features, settings and reviews
in the market For networking equipment is a lot of interesting products in the budget segment, both for home use and for installation in the office. Every renowned brand has tried to provide the potential buyer several modificatio...
Comments (0)
This article has no comment, be the first!