changing font color using response.write

the default font color of my asp page is "white" as set in the body tag

i want to change my table headers to "gold" and only the table headers and the rest of the text on the page to remain white.

I have come up with this but it will not change the color:

        Response.write "<font color=""" & gold & """>"
      Response.write "<center>"
      Response.write "<TABLE BORDER=1>"
      Response.write "<TR>"
      Response.write "<TH>User_name</TH>"
      Response.write "<TH>Last_log_date</TH>"
      Response.write "<TH>IP_Address</TH>"
      Response.write "<TH>Login_count</TH>"
      Response.write "</TR>"
        Response.write "</font>"

can someone help me please?
sh00tarAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

Ivo StoykovCommented:
Hello sh00tar,

try this

<TABLE BORDER=1>
  <thead>
    <TR style="COLOR: <%=gold%>">
      <TH>User_name</TH>
      <TH>Last_log_date</TH>
      <TH>IP_Address</TH>
      <TH>Login_count</TH>
    </TR>
  </thead>
  <tbody>
...
...
  </tbody>
</TABLE>


HTH

I
sh00tarAuthor Commented:
gold is not a variable for me and I need to write the html inside the response.write
sh00tarAuthor Commented:
i don't quite know how to use the brackets properly, almost always gives me an error when I try to use complex quotations in script
Learn Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

HuyBDCommented:
the FONT tag is not effected with table style, so try this

     Response.write "<center>"
     Response.write "<TABLE BORDER=1>"
     Response.write "<TR style=""color: gold"">"
     Response.write "<TH>User_name</TH>"
     Response.write "<TH>Last_log_date</TH>"
     Response.write "<TH>IP_Address</TH>"
     Response.write "<TH>Login_count</TH>"
     Response.write "</TR>"
....

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
Ivo StoykovCommented:
Hi sh00tar,

<TABLE BORDER=1>
  <thead>
    <TR style="COLOR: golà">
      <TH>User_name</TH>
      <TH>Last_log_date</TH>
      <TH>IP_Address</TH>
      <TH>Login_count</TH>
    </TR>
  </thead>
  <tbody>
...
...
  </tbody>
</TABLE>


regards

I
sh00tarAuthor Commented:
thankyou HuyBD, your suggestion works.
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
Fonts Typography

From novice to tech pro — start learning today.