I have a website which requires javascript enabled to be functioning properly.
So this made me put a <noscript> tag right after the <body> tag inside a DIV:
<noscript><div align="center" style="border:solid; margin:5px; padding:5px; font-weight:bold; background-color:#F00;" width="800px">You don't have javascript enabled. Please enable it to use this site.</div></noscript>
The problem is, that this is the first text (and almost only) after the body tag.
This makes search engines display the text inside the <noscript> tag in the SERP, which is bad.
My Q is, how can I solve this?
Could I put a hidden DIV BEFORE the noscript and thus make the Search Engines display that text instead?
Thanks
You could put it on the bottom and position it absolute on the top using CSS? Not the cleanest way, but then again.. having a website that doesn’t work without JavaScript isn’t either.. 😉