Skip to content

Inlineotto

Move inline CSS out of HTML

Visit project

By Evan Tanner

Skills

Inlineotto, image 1

Writing CSS directly inside HTML elements can quickly make a document messy, especially when styles are scattered across dozens of elements. Moving everything into a separate stylesheet is a much cleaner approach, but manually extracting each declaration can be tedious. I created Inlineotto to simplify that process, making it easier to separate styling from HTML without having to copy everything over by hand.

Inlineotto takes an HTML document, finds the CSS declarations written directly inside its elements, and collects them into a separate stylesheet. Instead of searching through the HTML and manually pulling out each style, I wanted a straightforward way to handle that extraction automatically. The idea is simple: take styling that's embedded throughout a document and bring it together into a dedicated CSS file, where it's easier to work with.

With Inlineotto, moving inline CSS into its own stylesheet becomes a much simpler task. It's a small utility built around a common annoyance in web development, saving the effort of manually gathering scattered styles and helping keep HTML focused on structure rather than presentation.

All projects