How to solve a tag nesting

php中世界最好的语言
Release: 2017-11-27 11:13:37
Original
1966 people have browsed it

We know that in the actual web page layout, sometimes it is necessary to click a part of the button in the middle of the entire click area, then the A tag is nested in the A tag

outerA innerA

But we will find that for this kind of nesting, the browser will directly parse it incorrectly, and the parsing result is as follows: