Welcome to Interactive Programming Forums, where you can ask questions, receive answers from other members of the community, post code snippets and post exercies.

how do you change colors of a text or backround

+8 votes
wat is the code for it
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

+18 votes
1 answer
posted 12 years ago in PHP by Matthew Tembo (6,610 points)
+21 votes
1 answer
posted 12 years ago in Exercises by legoglenn78 (2,380 points)
+12 votes
1 answer
posted 12 years ago in PHP by jaewilkes2010 (660 points)
+9 votes
2 answers
posted 13 years ago in Perl by DavidRabahy (8,440 points)