Forum Moderators: open

Message Too Old, No Replies

<style> & <script> tags affect on rankings

         

Hunter

6:26 pm on May 29, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi all,

I have always stayed away from extra tags in the <head> of sites but am wondering if the two that follow will leave the spiders with a bad hangover. Any thoughts?

<STYLE><!--
A {text-decoration: none;}
A:hover {text-decoration: underline;}
--></STYLE>

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function formHandler(){
var URL = document.form.site.options[document.form.site.selectedIndex].value;
window.location.href = URL;
// End
}
-->
</SCRIPT>

Drastic

6:37 pm on May 29, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Those are relatively small, but you can always use external style sheets and external javascript, they are best for SEO. Makes it easier to update sitewide, too.

To use external js, just call the script like this:

<script src="scriptfilename.js">
</script>

Naming/placing the file however you like.
Don't leave the <script>,</script> tags in the external file.

External CSS is handled this way:
<LINK REL=stylesheet HREF="mystyle.css">

That goes in the head.

Hunter

8:04 pm on May 29, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hey Drastic thanks for the info, I'll try that.