Header Ads

Text and Font Style



The text properties specify and control the appearance of the text in a Web page. You can
change the color of a text, increase or decrease the space between characters, align a text,
and so on using the text properties.

color
It is used for specifying the color of the text.

text-align
It is used in specifying the horizontal alignment of text in an element.


text-decoration
It is used for specifying the decoration of the text in an element.

text-indent
It is used for specifying the indentation of fist line of text in an element in length or %.

text-transform It is used in specifying the casing of text in an element.

word-spacing It is used for increasing or decreasing the space between words.

The font properties allow you to specify the font for the text. They allow you to change the
different font attributes of the text such as font, size, and style of the text. The browser
must support the font specified by the font properties. Otherwise, it will display the default
font, which is dependent on the browser.

font-family It is used for specifying the font and can specify a generic familyor a specific family name such as ‘Serif’ or ‘Times New Roman’.
 font-size It is used for specifying the size of the font and can have an absolute or relatie value.

font-style It is used for specifying the style of the font.

font-variant It is used for specifying whether the text should be displayed in small-caps.






No comments:

Powered by Blogger.