dlabraham
asked on
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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>
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>
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
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
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:
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:
&n bsp;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
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:
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:
&n
hope this helps! :)
skatervt
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>
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>
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
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
Yeah, but the downside is that in indents the whole paragraph, as you stated, instead of the first line as my solution does.
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> </i> tab.<br />
This is <i> </i> <i> </i> two tabs
</body>
</html>
Then I just put the string "<i> </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&
<html><head>
<style>
i {width:4em;}
</style>
</head>
<body>
This is a <i> </i> tab.<br />
This is <i> </i> <i> </i> two tabs
</body>
</html>
Then I just put the string "<i> </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&
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"> </i> tab.<br />
This <i>is</i> <i class="tab"> </i> <i class="tab"> </i> two tabs
</body>
</html>
Regards
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"> </i> tab.<br />
This <i>is</i> <i class="tab"> </i> <i class="tab"> </i> two tabs
</body>
</html>
Regards
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 :-)
Just my opinion - your mileage may vary :-)
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&
Cd&
I agree. I recommend close with points to Oliver_Dornauf .
Are you referring too, what EE has on the Top Navigation Tabs?
Carrzkiss