List of tables and figures

A table of contents is generated in a PDF and frontpage of book site. How can a list of tables and figures be generated?

I would assume if the content is tagged with the appropriate descriptor then a list could be generated following on the format of the general table of contents?