• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1877
  • Last Modified:

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.
0
dlabraham
Asked:
dlabraham
  • 4
  • 2
  • 2
  • +4
1 Solution
 
Wayne BarronCommented:
? 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
 
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 4
  • 2
  • 2
  • +4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now