Set text color to "red", and the text size to "xx-large", for the first letter of the <p> element. - HTML CSS CSS

HTML CSS examples for CSS:Quiz

Description

Set text color to "red", and the text size to "xx-large", for the first letter of the <p> element.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
<style>
p::first-letter {
    color: red;
    font-size: xx-large;
}
</style><!--from w  w  w  .  ja  v a2 s  . c  om-->
</head>
<body>

<p>This is a test. This is a test. This is a test. This is a test. This is a test. This is a test.</p>

</body>
</html>

Related Tutorials