I use this in visual studio but the compiler claimed that h1 cannot be nested in legend element, but browser can render it anyway so i am confused
h1
legend
if you check the html standards it says:
The %inline part means that it should only contain character level elements and text strings. So while it does render, you should not use it this way because the html is actually not valid.
%inline