Tab tag for HTML

Is there a TAB tag for HTML and if so what is the syntax for using the tag.  An example would be helpful.
dlabrahamAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Wayne BarronAuthor, Web DeveloperCommented:
? Tab ?

Are you referring too, what EE has on the Top Navigation Tabs?

Carrzkiss
0
Oliver_DornaufCommented:
There is no explicit TAB Tag.
But I have compiled a list a explained examples how to implement tabs.
http://www.homelesspixel.de/tabs/tabs.html
http://www.htmlgoodies.com/tutors/tabs.html
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
superm401Commented:
If you just want a tab at the begining of every paragraph, put this within the head of your document.
Where in says .5in, replace .5 with the number of inches you want the tab to indent.

<STYLE type="text/css">
<!--
P{text-indent:.5in}
-->
</STYLE>
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

seanpowellCommented:
I assume you're referring to the Tab key, as opposed to a navigation tab.

The answer is no, there is no direct alternative. You are left with a combination of CSS, preformatted text, and non-breaking space characters. It will get messy as browser implementation is not going to be strict.

Sean
0
skatervtCommented:
well, there are two ways to do it, dlabraham. here they are ...

to indent the whole paragraph:
====================
you can create a file in the same directory as your html file and call it "something.css"
open something.css in your html editor and put this code in it:
p {
     padding-left:60px;
}
now anything you put inside paragraph tags ( <p> a paragraph </p> ) will be indented 60 pixels.

to indent only the first line of the paragraph:
============================
the sequence of the following 6 characters is the html equivalent of hitting the spacebar: &nbsp;
use this character sequence at the beginning of the paragraph's first line, and use it once for each number of spaces you want your paragraph to be indented. the following example is a paragraph that will be indented 5 spaces:

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is an example paragraph. This is an example paragraph. This is an example paragraph. This is an example paragraph. This is an example paragraph. This is an example paragraph. This is an example paragraph. This is an example paragraph. This is an example paragraph. This is an example paragraph. This is an example paragraph.

hope this helps! :)
skatervt
0
superm401Commented:
Not to be arrogrant(I hope:)), but regrardless of what the previous two people have said, my solution will work perfectly in CSS compatible browsers.
When you use this solution, make sure you start all of your paragraphs with <P> .
Specifically, find <HEAD> in your page in the HTML source.  Directly afterwards, put

<STYLE type="text/css">
<!--
P{text-indent:.5in}
-->
</STYLE>

0
skatervtCommented:
true, superm401.

Also, I forgot to add at the end of my .css suggestion, that you would need something similar to the following tag right under your <HEAD> tag:

<LINK href="something.css" type=text/css rel=stylesheet>

my solution (obviously) will also work in css compatible browsers. :)

skatervt
0
superm401Commented:
Yeah, but the downside is that in indents the whole paragraph, as you stated, instead of the first line as my solution does.
0
COBOLdinosaurCommented:
When I need an occassional tab in text where pre is not convenient, I just mis-use a formatting tag that I do not normally have a need for.

<html><head>
<style>
i {width:4em;}
</style>
</head>
<body>
This is a <i>&nbsp;</i> tab.<br />
This is <i>&nbsp;</i> <i>&nbsp;</i> two tabs
</body>
</html>

Then I just put the string "<i>&nbsp;</i>" on a play key, so I can insert it in text whenever I need it.  K.I.S.S.  and it workd consistently in every browser I have tried it on.

Cd&
0
SMartinHamburgCommented:
cool, Cd&

those of us who have an occasional need for <i>italic</i> text this will work even better :-)

<html>
  <head>
    <style>
      i.tab {width:4em;}
    </style>
  </head>
  <body>
    This <i>is</i> a <i class="tab">&nbsp;</i> tab.<br />
    This <i>is</i> <i class="tab">&nbsp;</i> <i class="tab">&nbsp;</i> two tabs
  </body>
</html>

Regards
0
SMartinHamburgCommented:
having said this I'd also like to point out that IMHO a decently formating of any thing having a tabular structure is never achieved by tabs but only by using tables (this holds true for word processors as well as for HTML)
Just my opinion - your mileage may vary :-)
0
COBOLdinosaurCommented:
As the user never bothered to tell us what they meant by tab tag, there is no way of knowing if any of this helped however " There is no explicit TAB Tag." is a correct answer so points to Oliver_Dornauf IMHO

Cd&
0
superm401Commented:
I agree.  I recommend close with points to Oliver_Dornauf .
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.