First-line and First-letter Pseudo attribute in css

In css, give two most useful pseudo attribute that are:

1. First-line : it is effect in first line of given paragraph.
2. First-letter: it is effect in first letter of given paragraph.

For Example HTML File is :

<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
p.texts {
font-family:Verdana, Arial, Helvetica, sans-serif;
/* This is apply to first line */
p.texts:first-line {

/* This is a apply to first letter. */
p.texts:first-letter {



<p class="texts">
Premananda was a "vyakhyan-kar", a traveling storyteller,
who narrated his subject in song form and then perhaps elaborated on the lines in prose.
His style was so fluent that the long poems running into hundreds of lines were memorised by the people
and are still sung during the morning routines.
In this sense the oral tradition of the much more ancient Vedas was clearly continuing in India till late.
Premananda's famous poetry-stories deal with epic themes couched in stories of mythical kings, and the puranas.
He also wrote a drama based on Narasinh Mehta's life capturing his simplicity and his disregard for worldly divisions of caste and class.

Output is :


Popular posts from this blog

N Queen Problem using c and c++

MinMax Algorithm using c++

Greedy Prim Algorithm using c/c++