2 ms·
> Eg, <div><span /></div> will render as you expect because the browser will automatically close the span when you close the div. (!) span is a bad example. in
by bensecure 3y ago
> Eg, <div><span /></div> will render as you expect because the browser will automatically close the span when you close the div. (!)
span is a bad example. indeed it will close - but then it will reopen (!) when the next text node occurs. <p> is a better example, and it will also auto close when you try opening a new <p>, which can be rather convenient when trying to write concise html.