Bookmarks.html: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
m (minor tidying)
(added that bookmarks.html is no longer used for bookmark storage starting in Firefox 3)
Line 1: Line 1:
{{profile-file|filename=bookmarks.html}}
{{profile-file|filename=bookmarks.html}}
bookmarks.html stores bookmarks. The [[Bookmarks Manager]] provides an interface to edit, import, and export this file.
bookmarks.html stores [[bookmarks]] in Firefox 2 and below and in other Mozilla browsers.   The [[Bookmarks Manager]] (accessible from the Bookmarks menu) provides an interface to edit, import, and export this file.
 
'''Note:''' Starting in Firefox 3, [[places.sqlite]] is used instead of bookmarks.html for storing bookmarks.  When first upgrading to Firefox 3, the contents of bookmarks.html are imported.  Thereafter,  by default, the bookmarks.html file is no longer updated.  For more information, see [[browser.bookmarks.overwrite]] and [https://bugzilla.mozilla.org/show_bug.cgi?id=381216#c28  bug 381216].


==Editing==
==Editing==

Revision as of 14:21, 3 February 2008

bookmarks.html stores bookmarks in Firefox 2 and below and in other Mozilla browsers. The Bookmarks Manager (accessible from the Bookmarks menu) provides an interface to edit, import, and export this file.

Note: Starting in Firefox 3, places.sqlite is used instead of bookmarks.html for storing bookmarks. When first upgrading to Firefox 3, the contents of bookmarks.html are imported. Thereafter, by default, the bookmarks.html file is no longer updated. For more information, see browser.bookmarks.overwrite and bug 381216.

Editing

Although the Bookmarks Manager is the primary interface for managing bookmarks, bookmarks.html can be edited directly. The file uses a simple HTML structure that includes definition lists, anchors, and headers. A typical bookmarks.html bookmark contains the URL, name, and other meta data:

<DT><A HREF="http://www.w3.org/TR/2004/CR-CSS21-20040225/" 
 ADD_DATE="1079992089" LAST_VISIT="1132078168" LAST_CHARSET=
 "ISO-8859-1" ID="rdf:#$kLc2Z">Cascading Style Sheets, level
  2 revision 1</A>

The application should be closed before changes are made, else the changes will be overwritten.

Moving

This file can be moved to a different profile without any extra effort.

Deleting

Deleting bookmarks.html will delete your bookmarks. A new file containing the default bookmarks will be created on start up.

Related files and folders

See also