开发者

css font properties Vs text properties

开发者 https://www.devze.com 2022-12-10 09:50 出处:网络
After referring these two links (font properties and text properties), I have a doubt. What is font? 开发者_StackOverflowand what is text?

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

精彩评论

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