Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Qustion about HTML

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Negima
I post too much
Reputation: 5

Joined: 22 May 2007
Posts: 2221

PostPosted: Sun Oct 21, 2007 7:02 pm    Post subject: Qustion about HTML Reply with quote

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
View user's profile Send private message Visit poster's website
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sun Oct 21, 2007 7:14 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Negima
I post too much
Reputation: 5

Joined: 22 May 2007
Posts: 2221

PostPosted: Sun Oct 21, 2007 7:50 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sun Oct 21, 2007 8:03 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Negima
I post too much
Reputation: 5

Joined: 22 May 2007
Posts: 2221

PostPosted: Sun Oct 21, 2007 8:40 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sun Oct 21, 2007 9:00 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Wed Oct 24, 2007 3:42 am    Post subject: Reply with quote

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>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
   </tr>
   <tr>
      <td>&nbsp;</td>
      <td style="background-color:yellow">&nbsp;</td>
      <td>&nbsp;</td>
   </tr>
   <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</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
View user's profile Send private message
nog_lorp
Grandmaster Cheater
Reputation: 0

Joined: 26 Feb 2006
Posts: 743

PostPosted: Wed Oct 24, 2007 2:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Wed Oct 24, 2007 4:35 pm    Post subject: Reply with quote

lol i used expression web intellisense
_________________
Get kidnapped often.
Back to top
View user's profile Send private message
Bannedjsin95
Grandmaster Cheater Supreme
Reputation: 0

Joined: 11 Oct 2007
Posts: 1499

PostPosted: Wed Oct 24, 2007 6:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Wed Oct 24, 2007 11:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
bheesham
Advanced Cheater
Reputation: 0

Joined: 08 Nov 2006
Posts: 88
Location: ::1

PostPosted: Sun Oct 28, 2007 11:17 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sun Oct 28, 2007 11:20 am    Post subject: Reply with quote

Just a heads up Dave, if you plan to use your site to promote proper web coding, you should make sure your site itself is coded correctly. Every page on your site fails to validate because none of them have a doctype, along with that there are numerous errors throughout the site. Just a heads up Wink
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites