Forums

This topic is locked

how to hide text between <noscript> tags

Posted 07 Feb 2004 14:31:27
1
has voted
07 Feb 2004 14:31:27 Mark Taylor posted:
A website positioning company recently put some text inbetween &lt;noscript&gt; &lt;/noscript&gt; tags. While this strategy certainly improved our positioning for various keyphrases, it messed up the way my pages appear (in non code view). You can see the text between the noscript tags. Is their a way to turn this off so the text between the noscript tags doesn't display. When the page is uploaded to the server it displays just fine. Thanks

Replies

Replied 09 Feb 2004 11:51:10
09 Feb 2004 11:51:10 Wayne Hultum replied:
<pre id=code><font face=courier size=2 id=code> Browsers that do not recognize
the &lt;script&gt; tag will display the tag's
content as text on the page. To
prevent the browser from doing this,
you should hide the script in comment tags.
An old browser (one that does not
recognize the &lt;script&gt; tag) will ignore
the comment and will not write the
tag's content on the page, while a
new browser will understand that the
script should be executed, even if it is
surrounded by comment tags!
</font id=code></pre id=code>

Hope it helps

Edited by - wayne1000 on 09 Feb 2004 11:54:12
Replied 09 Feb 2004 21:21:47
09 Feb 2004 21:21:47 Mark Taylor replied:
I forgot to mention that the content between the noscript tags only appears in the dreamweaver design
view. When I press F12 to view the page in my ie browser, the page appears fine (the text between the noscript tags doesn't appear). Also,
when the page is uploaded to the server and again viewed in my browser, it is fine. So the problem does not seem to be browser related. It seems to be more Dreamweaver Design View related.
I'd appreciate anyone has any other ideas on how to solve this
problem,
Replied 10 Feb 2004 12:02:07
10 Feb 2004 12:02:07 Wayne Hultum replied:
Is sounds to me like you are viewing invisible elements.

To turn them off so they don't appear in dreamweavers design veiw press CRTL and U and make sure the script box is not ticked.

Hope it helps

Reply to this topic