HTMX in Action How to Build a Lightweight Signup Form

HTMX in Action: How to Build a Lightweight Signup Form

Chris Sonnenberg HTML5, Tutorial Leave a Comment

Creating dynamic, responsive web forms doesn’t have to be complicated. With HTMX, you can build a seamless signup form using just a few HTML enhancements. In this blog, I’m going to show how to make a basic signup form with HTMX.

We’ll cover how a few minor improvements to HTML allow us to make a simple form quickly while keeping state consistent. There will be only three sections to the form, but it’s easily extendable with changes in only one or two routes per change.

Navigating the High Seas of CSS Anchor Positioning

Lawrence Chabela Articles, CSS & HTML, Design, Development Technologies & Tools, HTML5 3 Comments

Navigating the seas of web development, the CSS Anchor Positioning API has emerged as a foundational tool, enabling developers to anchor elements precisely relative to others. This blog post explores key concepts such as anchor elements and anchor-positioned elements, demonstrating how to set up relationships between elements, utilize the anchor() function for positioning, and leverage the new anchor-center value for effortless centering. Advanced techniques like multiple anchors, the inset-area property, the anchor-size() function, and visibility options are also covered.

View Transition API

Introducing the View Transition API: Your DOM’s New Best Friend!

Lawrence Chabela API Development, Articles, CSS & HTML, Design, Development Technologies & Tools, JavaScript 1 Comment

Tired of clunky transitions and tangled web states? Meet the View Transition API, your secret weapon for silky-smooth DOM transformations. Say hello to elegant animations and goodbye to the confusion of overlapping states. Your web pages are about to get a serious upgrade!

Think about it, page transitions aren’t all about the looks. They’re like guides, leading users through your content. And they’re not just about appearances, these transitions can also increase the perceived speed of how responsive your site feels, especially during async running tasks…

:Has Selector

Exploring the New :has Pseudo Selector and Its Uses

Lawrence Chabela Articles, CSS & HTML, Design, Development Technologies & Tools Leave a Comment

Through the years, we were told a parent selector would be an engineering feat that could not be achieved due to the way browsers render a page and apply computed styles to elements as a stream, one element after the other. When the browser paints a parent and inevitably its children, reevaluating this already-painted DOM to evaluate parents for children containing a particular context would be too expensive of a task.

As the years moved on, we all applied different hacks or strategies, either reworking our DOM to avoid the issue altogether or using various JavaScript techniques to select parents and add CSS classes to use instead. We were just waiting for something to save us…