It is not exactly true. It must be XHTML. However, Sigil will convert it to XHTML to certain extent. There are some differences which must be kept in mind. One of the major one is the usage of name in anchors and so. It should be changed to id. That specific difference can cost quite some headache if you don't know.
Also, use the validation button in Sigil. It will help you.