Without complete HTML source code, I will indicate that this anchor is nested or after some element that does not have a closing tag.
Put the full HTML source code if this is not a problem.
You can easily find this problem by confirming your document:
This is the official HTML / XHTML W3C validator, so if any element is not closed, it will indicate which one you need to fix!
EDIT: After looking at the HTML source code posted in the response comments ... where is the document type declaration (DOCTYPE)? You forgot to add it!
Add this to the top of your HTML document:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
If you do not specify the type of document, browsers display web pages in quircks mode, which is a compatibility mode that may not display your page as you expected. Read more about this here:
Let me know if this solves your problem!
MatΓas Fidemraizer
source share