What is the display priority of html elements?

王林
Release: 2020-08-15 17:02:45
forward
5298 people have browsed it

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!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!