{"id":468,"date":"2022-05-24T21:26:07","date_gmt":"2022-05-24T21:26:07","guid":{"rendered":"https:\/\/gyanipandit.com\/programming\/?p=468"},"modified":"2022-05-24T21:26:09","modified_gmt":"2022-05-24T21:26:09","slug":"css-fonts","status":"publish","type":"post","link":"https:\/\/gyanipandit.com\/programming\/css-fonts\/","title":{"rendered":"CSS Fonts"},"content":{"rendered":"<p>Well, if we ever want to play with the font of the text on our web pages, we can do that using several font-related properties. Remember that it is better to use a font, which is easy to read. So, we are going to have a look at several properties, like &#8211;<\/p>\n<ul>\n<li>font-family \u2192<br \/>\nThe font-family property is used to define a list of fonts for some elements. (the first font is the first preference, and the last font is generic)<\/li>\n<li>font-size \u2192<br \/>\nAs the name of the property says, the font-size property is used to define the font size for some element<\/li>\n<li>font-style \u2192<br \/>\nThe font-style property is used to set the style of the font<\/li>\n<li>font-weight \u2192<br \/>\nThe font-weight property is used to define the boldness of the text<\/li>\n<li>font-variant. \u2192<br \/>\nThis property is used to specify whether or not the text should be displayed in the small caps.<\/li>\n<\/ul>\n<p>Let&#8217;s have a look at them one by one &#8211;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Well, if we ever want to play with the font of the text on our web pages, we can do that using several font-related properties. Remember that it is better to use a font, which is easy to read. So, we are going to have a look at several properties, like &#8211; font-family \u2192 The [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[9,13],"class_list":{"0":"post-468","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-css-tutorial","7":"tag-css","8":"tag-css-tutorial"},"_links":{"self":[{"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/posts\/468","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/comments?post=468"}],"version-history":[{"count":3,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/posts\/468\/revisions"}],"predecessor-version":[{"id":1438,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/posts\/468\/revisions\/1438"}],"wp:attachment":[{"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/media?parent=468"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/categories?post=468"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/tags?post=468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}