Home  >  Article  >  Web Front-end  >  Introduction to replaceable and non-replaceable elements

Introduction to replaceable and non-replaceable elements

零下一度
零下一度Original
2017-06-24 13:51:341815browse

Replaced element

img | input | select | textarea | button | label | object

Replaceable element: The browser determines the Tags and attributes to determine the specific display content of the element. If you look at the (X)HTML code, you can't see the actual content of the image.

These elements have intrinsic dimensions (intrinsic dimensions), and they can set the width/height attributes. Their properties are the same as elements with display:inline-block set.

By default, CSS formats elements in the appearance range.

Non-replaced element

span, strong, em, br, etc.


Variable element list--Variable elements determine whether the element is a block element or an inline element based on the context
Button
Define text that has been deleted in the document