Suggest an editImprove this articleRefine the answer for “What is inheritance in CSS?”. Your changes go to moderation before they’re published.Approval requiredContentWhat you’re changing🇺🇸EN🇺🇦UAPreviewTitle (EN)Short answer (EN)**Inheritance** in CSS is a mechanism whereby certain properties are automatically passed from a parent element to its children, such as `font-size`, `color`, or `line-height`. **Key point:** it simplifies code by letting you set shared styles at the top level instead of repeating them for every descendant.Shown above the full answer for quick recall.Answer (EN)ImageInheritance in CSS is a mechanism whereby certain properties are automatically passed from a parent element to its children. For example, `font-size`, `color`, or `line-height` are inherited, while `margin`, `padding`, or `border` are not. Inheritance simplifies code because it lets you set shared styles at the top level instead of repeating them for every descendant.For the reviewerNote to the moderator (optional)Visible only to the moderator. Helps review go faster.