Home Web Front-end HTML Tutorial Introduction to replaceable and non-replaceable elements

Introduction to replaceable and non-replaceable elements

Jun 24, 2017 pm 01:51 PM
element

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