Home » questions » HTML and a tab?

HTML and a tab?

2006-08-14 11:57:53, Category: Programming & Design
I need to insert a simple tab, nothing else. I do not need a long HTML string. Is there something that exists where I can use it like a bold letter but what I really want is to insert 4 spaces. Nothing more, nothing less. It is for a column.

Answers

  1. Daniel L

    On 2006-08-14 12:01:11


    There is no tab in HTML. Try: &+nbsp; &+nbsp; (except remove the "+" character. I had to insert it or this page would have automatically turned it into a blank space.) This inserts blank spaces for you. You cannot use two blank spaces because HTML automatically ignores those. You must alternate &+nbsp; and a blank space. (Again, remove the "+" symbol.) If you are familiar with CSS (cascading style sheets) then you can also adjust the left margin for indenting.
  2. sheeple_rancher

    On 2006-08-14 12:02:52


    There is no equivlent of a tab in html. You can do css like so:

    indented text

    This also wotrks in div, td and other tags.
  3. John J

    On 2006-08-14 12:09:46


    There is a way to do a tab using stylesheets:

    yada......

    Don't use & nbsp;, this will just pad your HTML with a lot of unnecessary characters. Using margin:5px will indent your entire paragraph by 5 px and change the margins, which is not what you want.
  4. easycoder_biz

    On 2006-08-14 12:02:01


    for every space you must use "&" folowed by "nbsp;" i cannot use it here as yahoo replace it