Jump to content
Chikwado

How To Add Color In Post

Recommended Posts

I think we're missing context here. It looks like you already managed to add some red text.

Share this post


Link to post
Share on other sites

From as much as i have learned i know these tags :

 

a) IF through HTML then u can use this tag:

<font color="green">Web technology</font>   <!-- The text "Web technology" will be in green color-->

b)through CSS, u can make a class for it:

.d1                                     <!-- d1 is the name of the class-->
{
    background-color:black;             <!-- This tag will add a background color to your text/div/para-->    
    color:green;                        <!-- This tag will add a color to your text-->
}

Share this post


Link to post
Share on other sites

The <font> tag has been deprecated since 1999. You're not allowed to use it anymore.

Share this post


Link to post
Share on other sites

Do they still use font tag for email? I know MS hotmail, livemail? Whatever is was/is, still used the old font tag, well MS has always been several years behind other better browsers and email clients.

Share this post


Link to post
Share on other sites

The <font> tag has been deprecated since 1999. You're not allowed to use it anymore.

 

oh,in my text book still <font> tag is there he he ! It must be an old edition.Thank you for the info

Share this post


Link to post
Share on other sites
It must be an old edition.Thank you for the info

 

 

Not necessarily an old addition, textbook are always well behind the curve; or it might just be a lazy editor, not bothering to check anything except spelling and grammar.

 

 

Anyway back on topic, just add a css class:

 

.hilitePost { color:red;}

 

And apply it to the text you want red with a span

Edited by COBOLdinosaur

Share this post


Link to post
Share on other sites

My question was different with the answer that were been pushing in. The text with red color that you found above was that, when I made the post I used bbcode tag and it generated html tag, why? If you view html source of that post it generated something like this:

<span style="bla bla hash red color">Red color display here</span>
Can you tell why it generate that html tag, because i did not input that while making the post. Edited by Chikwado

Share this post


Link to post
Share on other sites

The server reads BBCode and converts it to HTML.

Share this post


Link to post
Share on other sites

The browser cannot process BBcodes. On the server there is scripting to convert the BBcodes to HTML. BBCodes are used, because allowing HTML codes in postings is a security risk. For some very primitive implementations of BBcode to HTML it is possible to use javascript to do the replacement and then re-write the page, but that is pretty much worthless because the post needs to go to the server to be saved; and very few developers would accept the text containing HTML without stripping it and sanitizing the post before it is sent to the DB.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...