Interactive Programming Forums
Login
Register
Home
Questions/Snippets/Exercises
Unanswered
Tags
Ask a Question
Post a Code Snippet
Post an Exercise
Welcome to Interactive Programming Forums, where you can ask questions, receive answers from other members of the community, post code snippets and post exercies.
All categories
Ruby
(3)
Python
(10)
PHP
(7)
Perl
(2)
SQL
(8)
Javascript
(6)
HTML
(20)
CSS
(4)
jQuery
(0)
XML
(3)
Code Snippets
(1)
Exercises
(4)
Other
(9)
how do you change colors of a text or backround
+8
votes
wat is the code for it
programming
posted
12 years
ago
in
Perl
by
aronkaufman12
(
1,220
points)
1 Answer
0
votes
These are all covered in CSS exercises but here you go:
Changing text color:
Inline method:
<p style="color:blue">Hello World</p>
Embedded method:
<style type="text/css">
p {color:blue;}
</style>
Changing background color:
Inline method:
<body style="background-color:blue"></body>
Embedded method:
<style type="text/css">
body {background-color:blue;}
</style>
answered
12 years
ago
by
codeadmin
(
113,880
points)
Related questions
+11
votes
1
answer
How to understand easily the terms of your exercises as a new student who had not such kind of knowledge before?
posted
12 years
ago
in
Exercises
by
chanmg84
(
1,860
points)
programming-code
programming
html
php
+18
votes
1
answer
when your done with the course how do you create a website
posted
12 years
ago
in
PHP
by
Matthew Tembo
(
6,610
points)
+21
votes
1
answer
Where/how do I even start?
posted
12 years
ago
in
Exercises
by
legoglenn78
(
2,380
points)
programming
+12
votes
1
answer
after i do this php what else is needed to make a text base game
posted
12 years
ago
in
PHP
by
jaewilkes2010
(
660
points)
+9
votes
2
answers
PERL: hashes example 8: how to handle \n in a browser session?
posted
13 years
ago
in
Perl
by
DavidRabahy
(
8,440
points)