Home >Web Front-end >HTML Tutorial >What is the display priority of html elements?
Display priority of HTML elements
(Recommended tutorial: html tutorial)
Frame element (frame)> HTML elements take precedence, form elements always > non-form elements take precedence.
Common non-form elements include: link tag (A), DIV tag, SPAN tag, TABLE tag, etc.
The fundamental reason why form elements override style elements lies in the default display priority rules of HTML elements. All such HTML elements can be divided into two categories according to their display requirements, namely Windowed Elements and Windowless Elements.
Elements with windows include: SELECT elements, OBJECT elements, plug-ins, and IFRAME elements in IE5.01 and earlier versions.
Windowless elements include: most ordinary HTML elements, such as links and TABLE tags, and most form elements except SELECT elements.
The above is the detailed content of What is the display priority of html elements?. For more information, please follow other related articles on the PHP Chinese website!