rajakvk
rajakvk

Reputation: 10123

css font properties Vs text properties

After referring these two links (font properties and text properties), I have a doubt.

What is font? and what is text?

http://www.w3schools.com/CSS/css_reference.asp#font

http://www.w3schools.com/CSS/css_reference.asp#text

For example both color, font-size describes typography but why they placed in two different categories?

I'm missing some thing basically. What is it? Thanks for any help in advance.

Upvotes: 0

Views: 145

Answers (3)

Antoine Lyseight
Antoine Lyseight

Reputation: 11

Font is somehow like properties of the text, like :

Font-size:15px;
Font-Family: Sans Serif;
Font-Color: Red;

Text are the one that you will print on the browser,

Font is the CSS Property.

For more info refer this link : CSS Text & Font Properties

Upvotes: 1

Robadob
Robadob

Reputation: 21

Font is purely for control of Font related attributes whereas Text controls things that go beyond just the Font (such as alignment, etc).

Upvotes: 2

Wim
Wim

Reputation: 11242

Font is how the letters look like. Text is where to place them...

Upvotes: 0

Related Questions