Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: