Is it legal to have children of an anchor tag (<a>) in HTML?
问题 Is it legal to have children of an anchor tag in HTML? For an example: <a> <font>Example</font> <img src="example.jpg"/> </a> It works fine in the browsers.But is it valid? Please help 回答1: Yes - even more so with the advent of HTML 5 (From the spec): Although previous versions of HTML restricted the a element to only containing phrasing content (essentially, what was in previous versions referred to as “inline” content), the a element is now transparent; that is, an instance of the a element