L
Leo Baumann
hello,
how can i change the color of one word in a standart html-text ?
thanks ...
mfg Leo
how can i change the color of one word in a standart html-text ?
thanks ...
mfg Leo
Leo said:how can i change the color of one word in a standart html-text ?
how can i change the color of one word in a standart html-text ?
<heresy>Firstly, think of the reason you want a word to stand out in your text,
for example because it is jargon and you want to assist visitors in
understanding it. From the reason think of a proper name for a class,
because that is what you will be using. For jargon, .jargon might be a
useful class name. Then make the class and define the styles you want it
to have and make sure they are different from the styles applied to your
hyperlinks.
html in the body of your page:
<p>If one is about to use <abbr class="jargon" title="Hyper Text Markup
Language">HTML</abbr> and style it too, one could go to <a
href="http://www.w3schools.org/html/default.asp">W3C's html course</a> to
learn proper markup and to <a
href="http://www.w3schools.org/css/default.asp">W3C's CSS course</a> to
learn about styling.</p>
css in the head of your page:
<style type="text/css">
.jargon {
color:teal;
border-bottom:1px dotted teal;
cursor:help; }
</style>
Hope this helps.
Liz said:<font color:#ffcc33>word</font>.
<p>If one is about to use <abbr class="jargon" title="Hyper Text Markup
Language">HTML</abbr> and style it too, one could go to <a
href="http://www.w3schools.org/html/default.asp">W3C's html course</a> to
learn proper markup and to <a
href="http://www.w3schools.org/css/default.asp">W3C's CSS course</a> to
learn about styling.</p>
In message <opsihlunqkx5vgts@zoete_b>
<heresy>
If you think that's using a sledgehammer to crack a nut, and you don't
mind about being deprecated (have to validate transitional), you can just
use <font color:#ffcc33>word</font>.
</heresy>
invalid@v- said:In message <opsihlunqkx5vgts@zoete_b>
<heresy>
If you think that's using a sledgehammer to crack a nut, and you don't
mind about being deprecated (have to validate transitional), you can just
use <font color:#ffcc33>word</font>.
</heresy>
w3schools.org is not the W3C.
thank You very much, that was it ....
Barbara said:Dylan, see what you did? You spoiled him out of his chance to learn
something. :-(
Not so. He learned how to change the color of words using HTML/CSS. He
asked a direct question, so I gave a direct answer.
It really gets on my whick when people insist on answering something
with "blah blah Google blah blah" or with the most vague of answers that
still require the OP to go off and spend hours reading up on something.
In your case it was the suggestion of a sledgehammer when the OP
requested a toffee hammer
You also gave him a misleading answer as yours was specific to the case
of changing the color of an abbreviation, whereas the OP asked about the
generic situation of change "a word" as in *any* word.
Barbara said:Well, we just disagree.
I wonder what OP's next question is. 'How do I
remove the line under a link?'
That's okay. Can you imagine how awful the world would be if everyone
agreed with each other and we all got along?
Heh Depends on how much of a newbie he really is... that is a bit
advanced! I would expect a true newbie to say "I have a page with three
frames, and one has a table in it containing all my animated gifs. How
can I make the bottom frame refresh using just HTML? Also how can I make
it so that the visitors can't change the font size, cos when they do my
page looks ugly and the tables get broken?"
hello,
how can i change the color of one word in a standart html-text ?
oh dear,
dear friends,
i only wanted to colorize some words at this side ...
http://web1144.server19.greatnet.de/usaberech.htm#Rosh
Leo Baumann:
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.