You can save a copy of your bookmarks to an HTML file, using the Export feature of the Bookmarks Manager.
- Mozilla Suite/SeaMonkey: "Bookmarks -> Manage Bookmarks... -> Tools -> Export..."
- Firefox 2 and below:: "Bookmarks -> Organize (or Manage) Bookmarks... -> File -> Export..."
- Firefox 3 and above: "Bookmarks -> Organize Bookmarks -> Import and Backup -> Export HTML..."
- If "Export HTML..." does not work (no bookmarks HTML file is saved) see Unable to export bookmarks to HTML file - Firefox.
Bookmarks exported to an HTML file can be used for backup, in case of future problems with your bookmarks, and can also be used for importing bookmarks into another browser. See Import bookmarks and Restoring bookmarks from backup for more information.
Note: In Firefox 3 and above, you can automatically export your bookmarks at exit to the Firefox profile folder "bookmarks.html" file by setting browser.bookmarks.autoExportHTML to true in about:config but this may delay browser shutdown if you have many bookmarks.  You can set the name and location of that HTML backup via the preference browser.bookmarks.file.