Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 28-07-2009
Member
 
Join Date: May 2008
Posts: 248
How to put html tag to color text

Set your default font-color in the body rule, it's just as simple to add a background image to the webpage all that needs to be done is add the background attribute to the body tag <body bgcolor=#0099FF text="#FFFF00" background="bluetile.jpg"> I knew about custom extensions, just didn't know you could manipulate IIS to treat HTML files as ASP files.
Reply With Quote
  #2  
Old 28-07-2009
Member
 
Join Date: Mar 2008
Posts: 258
Re: How to put html tag to color text

You can use the "typeof()" method. It will return the string "object" for object type values. One note of caution: a Null will also return the string "object" Going back to the statement in your original paragraph, you CAN check to see if an object is valid by doing this...Since JavaScript is not a strongly typed language and in fact every object descends from the isObject type.
Reply With Quote
  #3  
Old 28-07-2009
Member
 
Join Date: Dec 2008
Posts: 183
Re: How to put html tag to color text

This method will check if the passed variable is an Object. SAPO.Utility.Variable.isObject(variable). To change the color of any particular alphabet, word, sentence insert the HTML tag <font color="color-name-here"> * before the first letter of the particular text and an </font> after the last letter of the text to be colored. Also, AJAX applications often return bad data because lot can go wrong with the request and server-side code execution.
Reply With Quote
  #4  
Old 28-07-2009
Member
 
Join Date: Jan 2009
Posts: 99
Re: How to put html tag to color text

To create a class in your css, use this .subtitle { color: #000000; } You can also change the font color. The common colors being red, green, cyan, brown, black, white, yellow, grey etc.

<BODY>
<FONT COLOR="red">Hello World</FONT>
</BODY>

These tags make the text between them change to the color specified. <p style="color:red"> Type the text to be in red colour </p> You can also put all this effect using one tag.
&lt;p style="font-size:20px;family:Calibri;color:red"&gt; Type the text to be in Calibri and red colour and with 20 pixel size &lt;/p&gt;
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to put html tag to color text"
Thread Thread Starter Forum Replies Last Post
HTML Color Codes Sonia G Software Development 4 27-03-2010 05:58 PM
Change html image border color Mind It Software Development 8 09-10-2009 08:47 AM
How to put background color for html cell Preetish Software Development 3 07-08-2009 03:32 PM
How to use justified text in Html Quattro Software Development 3 27-07-2009 03:16 PM
How To Know HTML Code of a Color ? ALEXANDRO Customize Desktop 4 06-03-2009 06:59 PM


All times are GMT +5.5. The time now is 11:44 AM.