liveBook · Manning

User-agent style

Also called browser default styles, browser's default styles

A user-agent style is a default set of presentation rules supplied by a browser for rendering document elements when author styles do not override them.

How 3 Manning books explain it

WordPress Power Toolkit: Harness AI to build next-level websites

Browser default styles are built-in CSS styling values that a browser applies to HTML elements when no author styles override them.

How it is used
Establishes the baseline appearance of HTML elements before theme, site, or inline CSS modifies them.
How deep it goes
Defines default property-value pairs and the four-level cascade, but stops short of browser-specific implementation details.
Examples
Uses h1 display, size, margins, weight, and color defaults as concrete examples.
What you can do after
Evaluate why an HTML element looks a certain way and apply CSS that overrides its browser defaults.

Read how WordPress Power Toolkit: Harness AI to build next-level websites explains user-agent style →

Tiny CSS Projects

Default styles are the initial presentation rules applied by a browser or operating system when author styles do not override them.

How it is used
Establishes readable fallback presentation for HTML and supplies the baseline that author CSS overrides.
How deep it goes
Defines the stylesheet origin, priority, common properties, and platform variation, but stops short of detailing browser implementations.
Examples
Uses headings, form controls, progress bars, and fieldsets to show defaults, variation, and practical resets.
What you can do after
Apply CSS resets and overrides while anticipating browser differences in native controls.

Read how Tiny CSS Projects explains user-agent style →

CSS in Depth, Second Edition

The rendering defaults supplied by a web browser through its user-agent stylesheet.

How it is used
Explains the browser defaults that shape unstyled elements and the CSS overrides used to establish an intended page design.
How deep it goes
Explains stylesheet origins, priority, common defaults, overrides, and revert, without descending into browser implementation internals.
Examples
Uses headings, paragraphs, lists, links, and a styled navigation bar to demonstrate defaults and deliberate overrides.
What you can do after
Apply it via CSS by identifying browser defaults, overriding unwanted values, and restoring selected defaults with revert.

Read how CSS in Depth, Second Edition explains user-agent style →

Also covered in

What to know first

Related concepts

Questions about user-agent style

What is user-agent style?

A user-agent style is a default set of presentation rules supplied by a browser for rendering document elements when author styles do not override them.

Which Manning books explain user-agent style?

WordPress Power Toolkit: Harness AI to build next-level websites, Tiny CSS Projects and CSS in Depth, Second Edition.

What should I know before learning user-agent style?

Manning books that teach user-agent style usually introduce CSS, HTML and CSS selector first.

What is the difference between user-agent style and revert?

A user-agent style is a default set of presentation rules supplied by a browser for rendering document elements when author styles do not override them. The CSS-wide revert keyword rolls a property value back to the value established by a lower-priority cascade origin.

What is user-agent style a kind of?

User-agent style is a kind of stylesheet. A stylesheet is a text document containing CSS rules that specify the visual presentation of structured documents and their elements.

What is user-agent style also called?

User-agent style is also called browser default styles or browser's default styles.

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.