MCA Lecture Notes - Html Element, Font, Serif

10 views4 pages
27 Oct 2022
Department
Course
Professor

Document Summary

This chapter teaches you how to set fonts of a content, available in an html element. You can set following font properties of an element . The font-family property is used to change the face of a font. The font-style property is used to make a font italic or oblique. The font-variant property is used to create a small-caps effect. The font-weight property is used to increase or decrease how bold or light a font appears. The font-size property is used to increase or decrease the size of a font. The font property is used as shorthand to specify a number of other font properties. Following is the example, which demonstrates how to set the font family of an element. Possible value could be any font family name. This text is rendered in either georgia, garamond, or the default serif font depending on which font you have at your system. This text will be rendered in italic style.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions