In CSS, a replaced element is an element whose representation is outside the scope of CSS. In other words, these are external objects whose representation is independent of the CSS formatting model.
Typical replaced elements are:
Some elements are treated as replaced elements only in specific cases:
Objects inserted using the CSS
content property are anonymous replaced elements. They are "anonymous" because they don't exist in the HTML markup.
CSS handles replaced elements specifically in some cases, like when calculating margins and some
Note that some replaced elements, but not all, have intrinsic dimensions or a defined baseline, which is used by some CSS properties, such as
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.