Nearly complete page cycle
Tweaks
Add missing value attributes, and change <a> to <button> for next/previous buttons.