I had a strange notice regarding my HTML code and I have no explanation for it if anyone can help explain this:
<form action="/action_page.php" method="get">
First name: <input type="text" name="fname"><br>
Last name: <input type="text" name="lname"><br>
<input type="submit" value="Submit">
</form>
<div id='div'>dummy</div>
When you define the id
of an element to have the same name as the tag, if you opened the browser console and typed "div" or "form" it would print out the element itself.
Can anyone explain this ?