| View previous topic :: View next topic |
| Author |
Message |
Negima I post too much
Reputation: 5
Joined: 22 May 2007 Posts: 2221
|
Posted: Sun Oct 21, 2007 7:02 pm Post subject: Qustion about HTML |
|
|
How do I change the color of a table?
<FONT COLOR="#789004"> isn't working for some reason when I put it between the <TABLE> and </table> tags. |
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Sun Oct 21, 2007 7:14 pm Post subject: |
|
|
Firstly, don't use inline code like that, it's seriously outdated to do it that method, and it also fails the new standards for web programming. Use CSS files instead.
But to answer your question using your method, to change the color of a table, you need to use the "bgcolor" attribute for table.
| Code: | <html>
<head><title>asdf</title></head>
<body>
<table bgcolor="#333333">
<tr>
<td>Table Cell</td>
</tr>
</table>
<body>
</html> |
|
|
| Back to top |
|
 |
Negima I post too much
Reputation: 5
Joined: 22 May 2007 Posts: 2221
|
Posted: Sun Oct 21, 2007 7:50 pm Post subject: |
|
|
| Wiccaan wrote: | Firstly, don't use inline code like that, it's seriously outdated to do it that method, and it also fails the new standards for web programming. Use CSS files instead.
But to answer your question using your method, to change the color of a table, you need to use the "bgcolor" attribute for table.
| Code: | <html>
<head><title>asdf</title></head>
<body>
<table bgcolor="#333333">
<tr>
<td>Table Cell</td>
</tr>
</table>
<body>
</html> |
| what do you mean inline code?
Also to change the text of the table would it be <table font color="#">
Also how do I put music into a page? or is that out of HTML's reach? |
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Sun Oct 21, 2007 8:03 pm Post subject: |
|
|
By inline I ment inline tag code. Using things like <table bgcolor="#colorcode">
Instead you should use CSS files and use the style, class, and id tags. Along with that tables are outdated, you should use divs instead. (I would suggest sticking to tables if you are new though.)
To change the font color use:
| Code: | | <table style="color:#ffffff"> |
And yes, HTML can use music, it's called embedding.
Check this site for info on how to do it:
http://cisnet.baruch.cuny.edu/phd/hughes/html%20music%20code.htm |
|
| Back to top |
|
 |
Negima I post too much
Reputation: 5
Joined: 22 May 2007 Posts: 2221
|
Posted: Sun Oct 21, 2007 8:40 pm Post subject: |
|
|
| Wiccaan wrote: | By inline I ment inline tag code. Using things like <table bgcolor="#colorcode">
Instead you should use CSS files and use the style, class, and id tags. Along with that tables are outdated, you should use divs instead. (I would suggest sticking to tables if you are new though.)
To change the font color use:
| Code: | | <table style="color:#ffffff"> |
And yes, HTML can use music, it's called embedding.
Check this site for info on how to do it:
http://cisnet.baruch.cuny.edu/phd/hughes/html%20music%20code.htm |
CSS files? |
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Sun Oct 21, 2007 9:00 pm Post subject: |
|
|
CSS stands for Cascading Style Sheet, it's a file that holds the template settings of your page that you will use later on. A small example of how to use one would be like this:
In your HTML file (index.html for this):
| Code: | <html>
<head>
<title>A CSS Example :)</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<p>Some example text.</p>
</body>
</html> |
The line:
| Code: | | <link rel="stylesheet" href="style.css"> |
Includes our CSS file. Next you have your CSS file. For this example I have named it style.css (so make a new text file and rename it to .css or use an editor of your choice)
And our code for the css file is:
| Code: | HTML, BODY
{
background-color: #cccccc;
}
p
{
font-family: "Terminal";
color: #ff0000;
} |
Our CSS file tells the HTML to set the background color of the page to #cccccc (grey) and anytime someone uses the <p> tag, it will be set to use Terminal Font and the font color will be red. |
|
| Back to top |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Wed Oct 24, 2007 3:42 am Post subject: |
|
|
| Code: | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Language" content="en-us" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled 1</title>
</head>
<body>
<table style="background-color:gray;width:100%">
<tr style="background-color:aqua">
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td style="background-color:yellow"> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td style="color:fuchsia">Yeah</td>
</tr>
</table>
</body>
</html> |
I dunno how to code html, but at least i know css and xHTML so this should help you a bit. _________________
Get kidnapped often. |
|
| Back to top |
|
 |
nog_lorp Grandmaster Cheater
Reputation: 0
Joined: 26 Feb 2006 Posts: 743
|
Posted: Wed Oct 24, 2007 2:00 pm Post subject: |
|
|
Lol dreamweaver.
Anyhow, read about CSS at w3schools.com _________________
Mutilated lips give a kiss on the wrist of the worm-like tips of tentacles expanding in my mind
I'm fine accepting only fresh brine you can get another drop of this yeah you wish |
|
| Back to top |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Wed Oct 24, 2007 4:35 pm Post subject: |
|
|
lol i used expression web intellisense _________________
Get kidnapped often. |
|
| Back to top |
|
 |
Bannedjsin95 Grandmaster Cheater Supreme
Reputation: 0
Joined: 11 Oct 2007 Posts: 1499
|
Posted: Wed Oct 24, 2007 6:56 pm Post subject: |
|
|
| Wiccaan wrote: | | Firstly, don't use inline code like that, it's seriously outdated to do it that method, and it also fails the new standards for web programming. Use CSS files instead. |
CSS files are the best to use!unless u want everything to be different... _________________
|
|
| Back to top |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Wed Oct 24, 2007 11:16 pm Post subject: |
|
|
inline has its use when BOTH of those apply:
1. When you aren't bothered to make another file which may as well get lost when you transfer the html
2. When you are using that style no more than once
overall a CSS file is better on a web domain _________________
Get kidnapped often. |
|
| Back to top |
|
 |
bheesham Advanced Cheater
Reputation: 0
Joined: 08 Nov 2006 Posts: 88 Location: ::1
|
Posted: Sun Oct 28, 2007 11:17 am Post subject: |
|
|
if you really need to know HTML fast and easy... I know a site that covers about everything you need to know... It tells you how to make BG music, Tables, etc.. it really teaches you the basics...
Click here to go to where he teaches you the below.
These are is listed on that page:
-HTML: An Interactive Tutorial for Beginners
-CSS: An Interactive Tutorial for Beginners
-Dave's Web Site Design Tutorial
-Dave's JavaScript Guide
-Dave's Beginners Guide to the Internet History of the Internet
To go to his homepage... (it has some extra stuff not related to html etc...) click here...
he has his own book out... and if you need help you can email him...
Hope this post was helpful... cause this was the site that I used to learn HTML... |
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
|
| Back to top |
|
 |
|