Is it legal to have children of an anchor tag (<a>) in HTML?
anchor, html, parent-child
Solution
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 is now allowed to also contain flow content (essentially, what was in previous versions referred to as “block” content)—if the parent element of that instance of the a element is an element that is allowed to contain flow content.
Problem
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