Html 3 have nice rare feature tabs like in word: http://www.w3.org/MarkUp/html3/tabs.html but I can't use this feature in modern browsers. Is there newer option to format text in paragraph without tables, multi   and css columns?
I'm trying to make this layout in one paragraph:
Price in USD/per kg
A 20$
BBB 30$
CCCCC 40$
Thanks!
You can use <pre>
tag in HTML. This will show the text in a preformatted way.
HTML 3.0 was an incomplete draft, in the mid-1990s, which was never completed, approved, or implemented (though some manuals and vendors used “HTML 3.0” as a buzzword long after HTML 3.0 draft expired).
Some of the ideas in HTML 3.0 were later developed and adopted into specifications, but the tab
element was completely abandoned.
You can still use the pre
element, which has been in HTML since the early days. Within in, formatting is preserved, and TAB characters (horizontal tab, HT, U+0009) takes you to the next tab stop. But the stops are set at every 8th character, in a fixed manner. The proposed tab-size
property in CSS would let you set the “size” of the TAB character, though, and it has been implemented in several browsers.
However, for the data outlined in the question, an HTML table
element is clearly the simplest, the most logical, and the most robust way. If your authoring environment does not let you use HTML tables, it won’t let you do much useful in the realm of web authoring in general – in any case, if this is really a problem, you should describe the specific constraints and ask a question about dealing with them, instead of asking about a hypothetical idea abandoned almost 20 years ago.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With