KOEN
All notes
EMAIL & CONTENT

Where does the button go in a plain-text email?

A Hyper Elements documentation detail prompted a small HTML extraction check. The button’s label and destination did not live in the same place.

Two sheets beside a blue envelope preserve a thread to a small doorway, with and without a button shape

Only the label remained

I made a small HTML fixture: a heading saying the receipt was ready, followed by a blue link styled as a “View receipt” button. The browser made the next action obvious. Would extracting only the visible words preserve where that action led?

Hyper Elements’ official README prompted the check. It presents content reused across formats, and its email rendering example returns both HTML and plain text. Seeing those two outputs side by side caught my attention.

This was not a trial of the library. I opened my handwritten HTML in local Chromium and read the main element’s innerText. The result contained the heading and the Korean label “영수증 보기” (“View receipt”), but not the link’s destination.

Reading the href attribute separately still returned the address. The fixture used the fictional receipt path https://example.com/receipts/demo-42. No navigation or email send occurred. The check compared information in rendered text with information in the link attribute.

MDN describes innerText as rendered text content. A missing address in my deliberately simple extraction does not establish the behavior of every HTML converter or of Hyper Elements’ text output. Only this HTML and this extraction were checked.

The next action without the shape

Next I manually constructed a text alternative with the destination below the extracted words. It retained both the action label and an address to open. The blue shape was gone, but the information needed to find the destination was back.

For a fictional notification email, I would check an appealing HTML button separately from a usable destination in the text alternative. Even with a written URL, its display in an actual mail program would need checking. This local fixture did not test delivery or client compatibility.

Thinking of a button as decoration makes it seem expendable in a text version. Yet its work here belongs more to the label and destination than to the background color. I want to know whether removing its appearance also removed that work.

Keeping shared content in one place remains appealing. With fewer places to edit, I would still compare what a reader can do in each output. Matching headings and sentences alone need not preserve the same next action.

Back at the line “View receipt,” there is now an address below it. Before choosing the button’s color, I find myself checking whether its destination survives without that color.

Sources

All notes