tab tag

liunx

Guest
Is there a tab tag in HTML??<!--content-->I don't think there is! see this site for all html tags:<br />
<br />
<!-- m --><a class="postlink" href="http://www.wdvl.com/Authoring/HTML/4/Tags/">http://www.wdvl.com/Authoring/HTML/4/Tags/</a><!-- m --><!--content-->what are you trying to accomlish? I am sure there is a way....<!--content-->I just want to tab indent.<br />
Using &nbsp; I have to use so many to get the spacing I desire. I thought tabbing would be easier, but there doesn't seem to be a tab tag. I ended up using many &nbsp;, if anyone knows of a way to "tab" in HTML I would love to hear about it. Until then &nbsp; works ok.<br />
<br />
Angela<!--content-->Well the default in HTML is to collapse multiple spaces into one (except non-breaking spaces &nbsp;). There is a Horizontal Tab entity ( ) but it will get treated like normal whitespace and collapsed anyway.<!--content-->Originally posted by AngelaS <br />
I just want to tab indent.<br />
Using &nbsp; I have to use so many to get the spacing I desire. I thought tabbing would be easier, but there doesn't seem to be a tab tag. I ended up using many &nbsp;, if anyone knows of a way to "tab" in HTML I would love to hear about it. Until then &nbsp; works ok.<br />
<br />
Angela I also use many space tags too b/c I don't think there is a tab tag.<!--content-->Bugger! Bugger! Bugger!<br />
I thought that might happen. I Previewed my reply, and it looked fine, but all my entitues got interpreted.<br />
The code for a non-breaking space is an Ampersand followed by "nbsp;". The code for a Horizontal Tab is an Ampersand followed by "#09;".<br />
Let's try<br />
nbsp = &nbsp;<br />
ht = &#09;<!--content-->Originally posted by jonhanlon <br />
Bugger! Bugger! Bugger!<br />
I thought that might happen. I Previewed my reply, and it looked fine, but all my entitues got interpreted.<br />
The code for a non-breaking space is an Ampersand followed by "nbsp;". The code for a Horizontal Tab is an Ampersand followed by "#09;".<br />
Let's try<br />
nbsp = &nbsp;<br />
ht = &#09; <br />
<br />
hehehe....yep, non-breaking-space gets interpreted...<br />
<br />
You could create indented paragraphs (if that is what you are wanting to do) using CSS.<br />
<br />
For an external or internal CSS Somthing like:<br />
<br />
p{text-indent: 20px}<br />
<br />
or<br />
<br />
p{text-indent: 2%}<br />
<br />
or for inline style attributes:<br />
<br />
<p style="text-indent: 20px"><br />
<br />
Regards,<br />
Kevin<!--content-->And, I spelt entities wrong.<br />
This seems to work:<br />
<span style="margin-left: 10em"></span><!--content-->I have created a 1px by 1px transparent gif. WHen I need to add some space, I put in the image like so:<br />
<br />
<img src=http://www.htmlforums.com/archive/index.php/"spacer.gif" height=1 width=50><br />
<br />
<br />
then I add my text. Its a useful trick you can use in any layout.<!--content-->Originally posted by jonhanlon <br />
And, I spelt entities wrong.<br />
This seems to work:<br />
<span style="margin-left: 10em"></span> <br />
<br />
Yes that will work fine. The text-indent property will indent only the first line of the element which makes it ideal for indenting a paragraph.<br />
<br />
The image trick that Dr. Web describes works great and is one I also use. <br />
<br />
Kevin<!--content-->
 
Back
Top