Text Properties: In which Properties are applied in the text. There are multiple text properties available here:
- Color: It set a color of the text.Example:
- a color name – “red”
- a HEX value – “#ff0000”
- an RGB value – “rgb(255,0,0)”
- Text-align: It specify about a horizontal alignment of the text. A text can be aligned left, Right, center, justify etc.
- Justify: In which text cover whole width from left and right side.
- Text-decoration: It is used to set or remove decoration from text. In which there are lot of values are available of this property like: Over-line, underline, line-through, none.
- None: It is used in the anchor tag to remove an underline of the text.
- Text-transform: It is used to specify an uppercase, lowercase letter in a text. Its properties values are: Uppercase, Lowercase, Capitalize.
- Text-Indentation: It is used to specify the indentation of the first line of a text.
- Letter-spacing: It is used to specify the space between the characters in a text.
- Line-Height: It is used to specify a space between lines.
- Word-Spacing: It is used to specify a space between the words in a text.
- Font-style: It specify a font-style for a text. It has a values like: Italic, normal, oblique.
- Font-variant: It specify whether or not a text should be displayed in a small-caps font or in a normal font. Its properties values are: Normal, small-caps.
- Normal: It display normal font.
- Small-caps: It display small-caps font.
- Font-weight: It specify font-weight. It specify a thick or thin characters in text.Its property values are: Normal, bold, bolder, lighter, number.
- Normal: It define normal character.
- Bold: It define thick character.
- Bolder: It define thicker character.
- Lighter: It define lighter character.
- Number: In which define a character from thin to thick.400 is same as normal, 700 is same as bold.
- Font-family: It specify font-family like: Arial, Times New Roman etc.
Examples :
(Visited 79 times, 1 visits today)