The "name" attribute of the <a> tag is definitely deprecated, you should use the "id" attribute instead.
I have converted 9 of my own novels into html and worked my way through making a css stylesheet that suits my particular book presentation tastes in strict xhtml, then made ePub and MOBI files of them successfully... very happy with the overall presentation.
BUT: On some books the end of the last chapter needs some sort of <END HERE> tag, so the Reader knows to look no further.
Anyone know how to do this? Like, is there a convention that inserting a tag like <a id="end" /> will be recognized by most common ebook compilers?