HTML DOM Style Object Text Properties

What are all the text properties available in the style object?

Explanation

HTML DOM Style Object Text Properties:
The text property is used to set the various values to the text at runtime.The text properties of the style object were listed in the table given below:
syntax:
object.style.property=value;
Text Property Description values
colorspecifies the color of the textname/rgb/hex
fontspecifies all font properties in oneStyle/Variant/Weight
/Size/Family
caption
icon
menu
message-box
small-caption
status-bar
fontFamilyspecifies the font of an elementfont1, font2,....
fontSizespecifies the font-size of an elementsmall
medium
large
fontSizeAdjustadjusts the size of a textnumber
fontStretchspecifies how to condense or stretch a fontultra-condensed
condensed
ultra-expanded
wider
narrower
fontStylespecifies the font-style of an elementnormal
italic
oblique
fontVariantDisplays text in a small-caps fontnormal
small-caps
fontWeightspecifies the boldness of the fontnormal
lighter
bold
bolder
letterSpacingspecifies the space between charactersnormal
length
lineHeightspecifies the distance between linesnormal
number
length
%
textAlignAligns the textleft
right
center
justify
textDecorationSets the decoration of a textunderline
overline
blink
textIndentIndents the first line of textlength
%

Ask Questions

Ask Question