Like “towards,” “forwards,” and “homewards,” “afterwards” ends with -wards.

“Afterwords” are sometimes the explanatory essays at the ends of books or speeches uttered at the end of plays or other works. They are made up of words.