Internal style
An internal style sheet is a collection of CSS rules embedded within an HTML document, typically in a style element.
Web Design Playground
A style sheet embedded in an HTML document, typically within a style element, that applies CSS rules to that document only.
- How it is used
- Applies shared CSS rules to selected elements within one HTML page.
- How deep it goes
- Defines style elements, selectors, declarations, declaration blocks, and rules, then relates internal styles to maintenance and the cascade.
- Examples
- Uses dt elements styled with larger bold text and a div whose inline blue color overrides an internal red rule.
- What you can do after
- Apply internal rules to multiple matching elements and recognize when inline styles override them.
Web Design Playground, Second Edition
An internal style sheet is a collection of CSS style rules embedded in an HTML document, typically within a style element in the document head.
- How it is used
- Applies consistent CSS formatting across multiple matching elements within one HTML page.
- How deep it goes
- Defines selectors, declaration blocks, and style rules, but defers advanced selector details and broader cascade behavior.
- Examples
- Uses a dt rule to format movie-job terms such as Gaffer, Best Boy, and Grip.
- What you can do after
- Apply CSS by placing a style element in head and writing reusable selector-based rules.
Read how Web Design Playground, Second Edition explains internal style →
Related concepts
- style attributealternative to · The style attribute is an HTML or SVG attribute whose value contains CSS declarations applied directly to that element.
- external stylealternative to · An external style is a stylesheet stored as a separate resource and linked to one or more documents.
- CSShas part · CSS, or Cascading Style Sheets, is a stylesheet language for specifying the presentation and layout of structured documents and user interfaces.
- style elementuses · A style element is an HTML element containing CSS rules that apply to a document or an applicable shadow tree.
- margin propertyconfigures · The CSS margin property specifies the outer space around an element’s border, separating it from neighboring content.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

