Mind blowing SEO improving and Google rank increasing Signature Rotator SEO Tool.

Thread: 

How to change font size and color in HTML

Ads
ivan Offline referral

Posts: 713
Joined: Jul 2013
Reputation: 6

#1
Senior Member
Hi could you tell me how can I change text size and color? 001_glare
marcus_avrelius Offline referral

Posts: 2,424
Joined: May 2013
Reputation: 102

#2
Support Team
Try this to change font color:
Code:
<font color="#000000">TEXT</font>

Try this to change font size:
Code:
<font size="20px">TEXT</font>

Now try this to change both font color and size:
Code:
<font color="#000000" size="20px">TEXT</font>

001_biggrin
chod Offline referral

Posts: 860
Joined: Jul 2013
Reputation: 85

#3
Posting Freak
It really should be done if it has to be inline using styles like
Code:
<p style="font-family:arial;color:red;font-size:20px;"></p>
This is only an example, please read about using styles to get a deeper grasp on using them properly.

That would be the more "compliant" way Wink

But the most clean and "proper" way would be in your CSS Wink
www.AdminEmpire.com
www.BlimptonTech.com - Best Free Online JavaScript tool to minify JavaScript files.
invisibe_dude Offline referral

Posts: 820
Joined: May 2013
Reputation: 24

#4
Posting Freak
You can also use <span> tag to achieve the same results

Code:
<span style="color:blue; size:14px; font:Arial, Helvetica, sans-serif;">Hello World</span>
001_tt2
chod Offline referral

Posts: 860
Joined: Jul 2013
Reputation: 85

#5
Posting Freak
My example was just that for <p> it does not have to be in a <p> tag. Your span example is the same thing, you're using styles Wink
www.AdminEmpire.com
www.BlimptonTech.com - Best Free Online JavaScript tool to minify JavaScript files.
ivan Offline referral

Posts: 713
Joined: Jul 2013
Reputation: 6

#6
Senior Member
Thanks Amigos!
victor Offline referral

Posts: 638
Joined: Jun 2013
Reputation: 33

#7
Senior Member
With CSS you have more control over font

Code:
.HelloWorld {
font-size: 10px;
color: red;
}
ivan Offline referral

Posts: 713
Joined: Jul 2013
Reputation: 6

#8
Senior Member
(12-30-2013 02:24 PM)victor Wrote:  With CSS you have more control over font

Code:
.HelloWorld {
font-size: 10px;
color: red;
}

Victor what is this CSS class or CSS ID?
adamssmiths Offline referral

Posts: 7
Joined: May 2014
Reputation: 0

#9
Junior Member
HTML allows you to change the color of various elements of your website by using special tags. These tags will tell the browser what color to display that element in, and can help spice up that boring black-and-white page. Color tags are easy to use, and learning the basics will only take a few minutes.

Specify the font size, font face and color of text:

<font size="3" color="red">This is some text!</font>
<font size="2" color="blue">This is some text!</font>
<font face="verdana" color="green">This is some text!</font>





User(s) browsing this thread: 1 Guest(s)