My Learning Curve

Feed

HTML & CSS Tip of the Week

Latest entries from HTML & CSS Tip of the Week.

Source: https://html-css-tip-of-the-week.netlify.app/

A few fun nesting tips & tricks

Oct 2, 2025

There are some handy things that you can do with nesting, espcially when you start moving the & placeholder around!

One corner, two border radii

Sep 25, 2025

Did you know you can control the border radius of both sides of a corner indepenently of one another? It might seem a little strange to do, but you can do some intersting things wi...

The picture element

Sep 18, 2025

Sometimes, designs have different images for large and small screen layouts. In those situations, it can be tempting to simply bring in multiple images and use a media query in you...

Single-colour gradients

Sep 12, 2025

It might seem strange, but single-colour gradients can come in handy in a few different ways!

@property

Jul 10, 2025

Register custom CSS properties with specific syntax to enable smooth animations and transitions.

:nth-last-child

Jul 3, 2025

Select elements by counting backwards from the end using the :nth-last-child pseudo-class selector.

calc-size()

Jun 20, 2025

We can now do calculations based on the intrinsic size of an element

The <output> element

Jun 6, 2025

Display calculation results and user interaction outcomes with semantic HTML using the output element.

The datalist element

May 22, 2025

Create autocomplete dropdowns with suggestions using the datalist element without JavaScript.

:out-of-range

May 15, 2025

A quick look at the :not-in-range psuedo-class.

:placeholder-shown

May 7, 2025

A quick look at the :placeholder-shown pseudo-class for styling form elements that are displaying placeholder text.

input type='color'

Apr 24, 2025

Easily add a color picker to your page using an input with a type of color.

:only-child

Apr 17, 2025

Learn how to use the :only-child selector to style elements differently when they have no siblings. Perfect for adaptive designs with optional elements like figure captions. Plus, ...

The <q> element

Apr 2, 2025

When creating quotes in HTML, most people are aware of the element, but for shorter quotes you might want an inline element, and that is where the element comes in

input type="number"

Mar 25, 2025

Number inputs can be useful, but they aren't as straight forward as they might seem at first.

The search element

Mar 4, 2025

A quick look at the search element, a semantic element for search and filtering

The :has() pseudo-selector

Feb 25, 2025

The :has() relational selector allows you to select parents of elements, but also preceding elements, siblings, and much more!

The <kbd> element

Jan 14, 2025

An underused HTML element for when we want to show keyboard commands and user inputs.