Text Properties

CSS Properties



Property

Possible Values

font-family

Valid font family names or generic family names, i.e. Arial, Verdana, sans-serif, "Times New Roman", Times, serif, etc.

font-size

Lengths (number and unit type— i.e. 1em, 12pt, 10px, 80%) or one of the following predefined values:

xx-small
x-small
small
medium
large
x-large
xx-large
smaller
larger

font-size-adjust

Numeric value

font-stretch

normal
wider
narrower
ultra-condensed
extra-condensed
condensed
semi-condensed
semi-expanded
expanded
extra-expanded
ultra-expanded

font-style

normal
italic
oblique

font-variant

normal
small-caps

font-weight

normal
bold
bolder
lighter
100 -900

font

Separate values by a space in the following order (those that are not defined will use inherited or default initial values):

font-style
font-variant
font-weight
font-size
line-height
font-family

Property

Possible Values

color

Valid color names, RGB values, hexidecimal notation.

Rgb(233,23,32)

direction

ltr
rtl

ltr = left-to-right
rtl = right-to-left

line-height

Numbers, percentages, lengths, and the predefined value of normal.

letter-spacing

A length (in addition to the default space) or the predefined value of normal.

text-align

left
right
center
justify

text-decoration

none
underline
overline
line-through
blink

text-indent

Lengths and percentages.

text-shadow

A list containg a color followed by numeric values (separated by spaces) that specify:

1.    The color for the shadow effect

2.    Horizontal distance to the right of the text

3.    Vertical distance below the text

4.    Blur radius

text-transform

none
capitalize
uppercase
lowercase

white-space

normal
pre
nowrap

word-spacing

A length (in addition to the default space) or the predefined value of normal.

Qus. 1 : The __________ property allows to indent the first line of text in an element.

  1. text-first
  2. text-indent
  3. first-indent
  4. text-first-indent
Qus. 2 : Identify the incorrect statement about a PseudoClass in CSS.

  1. It is a style class defined in CSS
  2. gives the author access to content not specifically declared in the document
  3. Pseudoclass is separated by an underscore from the name of the element
  4. Pseudoclass are separated by a colon from the name of the elemernt

Programs

Latest Current Affairs 2024 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad