/    Sign up×
Community /Pin to ProfileBookmark

Need to write text with different color without using any html tag control

Need to write text with different color without using any html tag control like text area, label etc.

please help me…

to post a comment
HTML

5 Comments(s)

Copy linkTweet thisAlerts:
@ralphchadkirkJun 02.2011 — Not really sure what you're asking. You change the style of elements using CSS.
Copy linkTweet thisAlerts:
@adriankawaauthorJun 02.2011 — Not really sure what you're asking. You change the style of elements using CSS.[/QUOTE]

i need to write some text in my page with red color for that text and i don't want to use any html control for writing this text is it possible to set color to this text without using any html control.
Copy linkTweet thisAlerts:
@cootheadJun 02.2011 — Hi there adriankawa,

here you go, red text...
[color=navy]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="language" content="english">
<meta http-equiv="Content-Style-Type" content="text/css">

<title>Red text</title>

<style type="text/css">
body {
font-family:arial,sans-serif;
font-size:1em;
font-weight:bold;
color:#f00;
}
</style>

</head>
<body>

<p>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras volutpat, purus ac
pellentesque adipiscing, mauris ligula convallis metus, vitae scelerisque nibh
orci quis mi. *** sociis natoque penatibus et magnis dis parturient montes,
nascetur ridiculus mus. Curabitur porttitor aliquam libero. Quisque molestie ornare
sem. Nam euismod sem lacinia ipsum. In pharetra metus ut dolor cursus aliquam.
Maecenas eu ante quis enim tincidunt laoreet. Pellentesque varius nunc in ipsum
pulvinar sollicitudin. Nunc et mi. Donec auctor dignissim orci. Aliquam sed magna.
Pellentesque in dui. In eget elit. Praesent eu lorem.
</p>

</body>
</html>
[/color]

[i]coothead[/i]
Copy linkTweet thisAlerts:
@ralphchadkirkJun 02.2011 — i need to write some text in my page with red color for that text and i don't want to use any html control for writing this text is it possible to set color to this text without using any html control.[/QUOTE]

Do you want all the text on the page to be red, or just some of it?

To make it all red, use the code in the post above. To make some of it red, you'll need to replace the body {} in the example above with:
[CODE]
.red {
color: #FF0000;
}
[/CODE]

And use it with your paragraph tags as follows:
[code=html]
<p class="red>
...
</p>
[/code]
Copy linkTweet thisAlerts:
@adriankawaauthorJun 02.2011 — Thanks for providing this solution it will great to see this it will now very help full to me for my website design and development.

Thanks once again..
×

Success!

Help @adriankawa spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.4,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...