I am working on a creative website featuring silly limericks. I would like to display each line of the limerick in an alternating direction. That is, I want it in boustophedon form. I was wondering if this was possible with just HTML.
As an example, I would like to be able to write markup that looks something like this:
<p>
<forward>There once was a young lady with pride,<br>
<backward>who ate fourteen green apples and died.<br>
<forward>Within the lamented,<br>
<backward>the apple fermented<br>
<forward>and made cider inside her insides.
</p>
which would display something like this
There once was a young lady with pride,
.deid dna selppa neerg neetruof eta ohw
Within the lamented,
detnemref elppa eht
and made cider inside her insides.
For this example, I just manually wrote the text backwards, but I don't want to have to keep doing that since it's a very tedious process. It would be nice if I could do this in pure HTML, without having to do any scripting to dynamically manipulate the text.