开发者

css font properties Vs text properties

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

What is font? 开发者_StackOverflowand 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.


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


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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜