שולחן ערוך, יורה דעה שפ״ו

Shulchan Arukh, Yoreh De'ah 386

עטיפת הראש באבל. ובו סעיף אחד:
אבל חייב בעטיפת הראש דהיינו שיכסה ראשו בטלית או בסודר ויחזיר קצתו על פיו ועל ראש החוטם והני מילי שצריך עטיפה בכל היום אבל כשבאין מנחמים אצלו מגלה ראשו לכבודם: הגה וי"א שאין נוהגין במדינות אלו בעטיפה (הגהות מיי' פ"ה) וכן המנהג פשוט ואין להחמיר לשנות במה שלא נהגו אבותינו:
A mourner is required to muffle the head, i.e., to cover his head with a mantle or a piece of cloth [so that] part of it enfolds his mouth and the tip of the nose. And this [matter, viz.,] that a mourner is required to muffle [his head] all day, applies [only when he is alone], but when comforters come to him, he uncovers his head out of respect to them. Gloss: Some say that in these countries we do not adopt the practice of muffling the head. Thus is the common practice, and one should not adopt the stringent view to make changes regarding a matter which our fathers did not practice.

Ashlei Ravrevei: Shulchan Aruch Yoreh Deah, Lemberg, 1888 (Public Domain) · Code of Hebrew Law by Chaim N. Denburg, Montreal, 1955 (CC-BY) · 1 seif