Replaced elements

Replaced elements in HTML are elements whose content is provided by external resources, meaning their display is independent of the CSS styles applied to the surrounding document. Common examples include ,

A replaced element is an element whose representation is outside the scope of CSS; they’re external objects whose representation is independent of the CSS formatting model. Some replaced elements, such as <iframe> elements, may have stylesheets of their own, but they don’t inherit the styles of the parent document.

While document styles can set the size and position of replaced elements, document styles dont affect the replaced elements’ content, with some exceptions: The CSS images module includes properties which support controlling the positioning of the element’s content within its box.

The following can be replaced elements:

The following are treated as replaced elements only in specific cases: