Home > Article > Web Front-end > Nesting rules for Html tags_html/css_WEB-ITnose
1. HTML tags include block-level elements (block) and inline elements (inline)
1. Block-level elementsGenerally used to build website architecture, layout, and content... It includes the following tags:
address、blockquote、center、dir、div、dl、dt、dd、fieldset、form、h1~h6、hr、isindex、menu、noframes、noscript、ol、p、pre、table、ul
2 , Inline elements
Generally used in certain details or parts of website content to "emphasize, distinguish styles, superscripts, subscripts, anchor points", etc. The following tags They are all inline elements:
a、abbr、acronym、b、bdo、big、br、cite、code、dfn、em、font、i、img、input、kbd、label、q、s、samp、select、small、span、strike、strong、sub、sup、textarea、tt、u、var2. Nesting rules of HTML tags
:
<p><ol><li></li></ol></p> ?? 错<p><div></div></p> ?? 错
Level elements, these special tags are: 🎜>