Path: blob/main/files/en-us/web/html/global_attributes/part/index.md
6555 views
------{{HTMLSidebar("Global_attributes")}}
The part global attribute contains a space-separated list of the part names of the element. Part names allows CSS to select and style specific elements in a shadow tree via the {{CSSxRef("::part")}} pseudo-element.
See our Shadow part example for a usage example.
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}
See also
All global attributes.