Home>Article>Web Front-end> What is the display priority of html elements?

What is the display priority of html elements?

王林
王林 forward
2020-08-15 17:02:45 5306browse

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!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete