Comment on XHP: A New Way to Write PHP (from Facebook)parentComments−jws16yThe HTML tag closing rules specify they only get closed when they have to be. So neither of your solutions is correct. It is:<div>foo<a>bar<span>baz box</span></a></div>−adelevie16ymy solution was to merely demonstrate the difference between what a programmer writes and what gets sent as an http response.
Comments
The HTML tag closing rules specify they only get closed when they have to be. So neither of your solutions is correct. It is:
<div>foo<a>bar<span>baz box</span></a></div>
my solution was to merely demonstrate the difference between what a programmer writes and what gets sent as an http response.