“Why use single quotes in HTML?”

HTML attributes generally use double quotes in older HTML code but single quotes are becoming more popular and are easier to type — and have always been preferred in JavaScript coding styles.

The HTML spec (HTML 4.01, section 3.2.2) very clearly allows single quotes and even no quotes. HTML minifiers regularly drop all quotations so why not save the same time ourselves?