In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains the "HTML tags can be nested", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "HTML tags can be nested" bar!
HTML tags can be nested. The nesting rules in HTML are: 1, block elements can contain inline elements or some block elements, but inline elements cannot contain block elements; 2, block-level elements cannot be placed in p elements; 3, H2, h3, h4, h5, h6, h7, p and dt elements can only contain embedded elements, not block-level elements.
This article operating environment: Windows10 system, html5 version, Dell G3 computer.
Can HTML tags be nested
HTML tags can be nested
The general rules for nesting labels are as follows:
1. Block tags can nest inline tags, block tags may not be able to nest block tags (for example, p tags cannot nest other block tags), inline cannot nest blocks (there is a special case a tag, it can nest div):
Block nested block example:
2. Block-level elements cannot be placed in p elements
Special case (error example):
This is not possible, p can only be nested p, nothing else can.
In general, inline cannot nest blocks, but there are special case tags:
A tag is very special can nest div, can nest inline tags, but not its own ().
3. There are several special block-level elements that can only contain embedded elements, not block-level elements. These special tags are: H2, h3, h4, h5, h6, h7, p, dt.
Block-level elements juxtaposed with block-level elements, embedded elements juxtaposed with embedded elements:
-- right-- right-- wrong Thank you for your reading, the above is the content of "can HTML tags be nested?" after the study of this article, I believe you can have a deeper understanding of the problem of whether HTML tags can be nested, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.