In CSS, a replaced element is an element whose representation is outside the scope of CSS. These are a type of external object whose representation is independent of the CSS. Typical replaced elements are:

Some elements are treated as replaced elements only in specific cases:

Some form controls can also be replaced elements. The HTML spec says that an  <input> element can be replaced, and  <input> elements of the image type must always be considered replaced.

Objects inserted using the CSS content properties are anonymous replaced elements.

CSS handles replaced elements specifically in some cases, like when calculating margins and some auto values.

Note that some replaced elements, but not all, have intrinsic dimensions or a defined baseline, which is used by some CSS properties like vertical-align.

See also

Document Tags and Contributors

 Last updated by: Dholbert,