CSS Selector :first-letter
Description
The :first-letter
selector adds style to the first letter of
the specified selector.
Example
<!DOCTYPE html>
<html>
<head>
<style>
p:first-letter{<!-- ww w .j av a2s. c o m-->
font-size:200%;
color:#8A2BE2;
}
</style>
</head>
<body>
<p>java2s.com</p>
<p>www.java2s.com</p>
</body>
</html>
The code above generates the following result.