HTML file: | Displayed by browser: |
---|---|
<style>
p::first-letter { color: #ff0000; font-size: xx-large; } </style> <body> <p>You can use the ::first-letter pseudo-element to add a special effect to the first character of a text!</p> <p>The second paragraph will be affected the exact same way, so you can have a very consistent look throughout a webpage.</p> </body> |
You can use the ::first-letter pseudo-element to add a special effect to the first character of a text! The second paragraph will be affected the exact same way, so you can have a very consistent look throughout a webpage. |
|
|