P div tag with the tag including the final out of the browser rendering no one inside

Should think Penguin: 33257946 I did not expect before made such a stupid mistake  

After learning the language of html tags you can be nested to say but some tags are not nested 

When writing HTML structure for a nested labels question, before I found the problem, not in their own considerations, but also silly to think that between the label can be wild!

Such a label before a nested tag will not take effect

(. 1) a label a label can not be nested (nested links) can not be

<a href="###"> sub-elements parent element <a href="###"> </a> </a>; // nesting parent-child
(2) p block-level tags can not be nested label

<p> parent element <div> child element </ div> </ p> ; // nesting parent-child
browser brothers resolved to grade:

<p> parent element </ p>;
<div> child element </ div>;
I just made a silly mistake and finally resolve this became brothers mark I also wonder in the browser it finally found that although the p mark but you can not be nested block tag is another block tags can be nested within the tag line and the line block flag 

<p> <span></span> </p>                 <p> <input></input> </p>
————————————————

Guess you like

Origin www.cnblogs.com/16562653945aa/p/12117297.html