Tiny Frontend Logo
Posts 0106

On This Page

2. Syntax

Styling the First Letter

Drop caps have been used for a long time with print media to add flair to the first letter of a section or chapter. It draws attention and entices the reader.

The ::first-letter pseudo-element applies styles to the first letter of a block container.

1-Minute Video

Syntax

This is the syntax. Append the pseudo element after the target element selector and change the styles of the first letter.

p::first-letter {
    font-size: 200%;
    color: blue;
}
Subscribe to read the full content

* Free subscribe to enjoy full content access.
* You can cancel anytime with 1-click.

Read Next

0105

The Deprecation of Third-Party Cookies

Google has announced its plan to disable third-party cookies by default in Chrome, a step that will reshape the landscape of online tracking and user privacy. This change is part of a broader effort to enhance user privacy and security on the web.

The Deprecation of Third-Party Cookies
0104

Implementing Your Own debounce()

Debounce is a common technique used in web development to improve performance by controlling the rate at which a particular function is invoked.

Implementing Your Own debounce()
0103

Design Pattern: Singleton

Ever wondered how the Singleton Design Pattern is used in frontend development?

Design Pattern: Singleton
0102

The Strict Mode in JavaScript

Ever wondered why some JavaScript functions start with 'use strict' at the beginning?

The Strict Mode in JavaScript
0101

Adapting Your Website to Language Changes

The ability to seamlessly switch between languages enhances user experience and makes your website more accessible to a diverse audience. Let's explore the steps involved in achieving this functionality.

Adapting Your Website to Language Changes