/    Sign up×
Community /Pin to ProfileBookmark

Tables or formatting data

Hello, I want to display data in a web page in a table format. My first inclination was to use some type of tabbing feature in HTML, but I could not figure this out, so I instead am using a table. Question 1: Is there a tab tag in HTML ?

Question 2: My current HTML table has a raised border. Can I specify no border around the table at all ? Is so, how do I do this?

Question 3: In my table, the text in the heading comes out rather big and goofy looking. How do I control the font of the heading text. Here is my HTML code:

<TABLE BORDER ALIGN=CENTER>
<TR>
<TH>Fruit</TH>
<TH>Vegetables</TH>
<TH>Grains</TH>
</TR>
<TR>
<TD>Apples</TD>
<TD>Spinach</TD>
<TD>Bread</TD>
</TR>
<TR>
<TD>Bananna</TD>
<TD>Tomatoe</TD>
<TD>crackers</TD>
</TR>
</TABLE>

to post a comment
HTML

8 Comments(s)

Copy linkTweet thisAlerts:
@DaveSWSep 09.2003 — 1) <p style="text-indent: 25px;"> Indented text</p>

you could use margin-left instead to move the entire text block to the right.


2) <TABLE BORDER="0" ALIGN="CENTER">


3) In your head section:

<style type="text/css"><!--

th {

font-size: 100%;

}

--> </style>
Copy linkTweet thisAlerts:
@96turnerriSep 09.2003 — alternativly for q3 you could add font tags <font> say <font size="10" face="Arial" etc>Bananas</font>
Copy linkTweet thisAlerts:
@CharlesSep 10.2003 — [font=georgia]The FONT element was depricated back in 1997 and with good reason. Use style sheets instead. They are much more powerful and easier and give you a better web page in the end.[/font]
Copy linkTweet thisAlerts:
@96turnerriSep 10.2003 — true but from the looks of it its a simple site and instead a whole style sheet, easier to use font tag
Copy linkTweet thisAlerts:
@CharlesSep 10.2003 — [font=georgia]In what way is

[font=monospace]<th><font size="10" face="Arial" etc>Bananas</font></th>[/font]

easier than

[font=monospace]<th style="font-size:100%; font-family:Arial, sans-serif">Bananas</th>[/font]

or

[font=monospace]<th><font size="10" face="Arial" etc>Bananas</font></th>

<th><font size="10" face="Arial" etc>Tomatoe</font></th>

<th><font size="10" face="Arial" etc>crackers</font></th>[/font]

easier than

[font=monospace]<style type="text/css">

<!--

th {font-size: 100%}

-->

</style>

<th>Bananas</th>

<th>Tomatoes</th>

<th>crackers</th>[/font]?[/font]
Copy linkTweet thisAlerts:
@96turnerriSep 10.2003 — its not easier than one of the ones you used cos u used the same one, i mean its easier than creating a style sheet, if its only a small page or site
Copy linkTweet thisAlerts:
@pyroSep 10.2003 — Even if it were easier (which it is not), that is no excuse to use invalid markup. When a tag is depreciated, that means that browsers no longer need to support it. Not sure about you, but I like the though of my site being forward compatable.
Copy linkTweet thisAlerts:
@96turnerriSep 10.2003 — ok then..
×

Success!

Help @binsoft spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.13,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,
)...