Home | Web Design Tutorials | Free Graphics | Newsletter | Products | Specials | SEO | Sound Effects | Member Perks | Member Login |
HTML Script Tag Tutorial
Browser Support
The script tag is used to embed a client-side script in a web page, most commonly JavaScript. Common uses for JavaScript are image manipulation, stylized tool tips, form validation, and printing content based on variables.
The script element may link to an external script via the src (source) attribute or it may contain scripting statements. The type attribute is required. It is used to specify the script's MIME type. Here's an example:
<script type="text/javascript">
//Script courtesy of BoogieJack.com
var Today = new Date();
var ThisYear = Today.getFullYear();
var DayName = Today.getDate();
document.write("Copyright " + ThisYear);
</script>
Here's how that looks on a web page:
Obviously that script places a copyright notice on your web page. The nice thing about it is the date is automatically updated each year. Just drop your name or website name after it and you've got an extremely low maintenance copyright notice. Yeah, go ahead and steal my script. That's why I used it as an example, to give you something cool. If you want to thank me just link to my site—and thank you in advance if you do. Based on your interest in this tutorial you may also be interested in:
This concludes the HTML Script Tag Tutorial.
|
If you want your web site to rank high in the search engines . . . what are you going to do to get it there? Check out my search engine optmization guide, SEO for YOU: Search Engine Optimization for Ordinary Everyday People!
Check out SEO for YOU now! Almost a NewsletterSubscribe today for exclusive website design tutorials and grab some free gifts to boot! Learn more, or subcribe below:Did you know...The member's site has about 100 standards compliant HTML and CSS tutorials, 31 handy reference charts, reprintable content, web graphics, exclusive fonts, free software, free ebooks and more? All this for less than 9 cents a day! [ Details ] |
Home | Web Design Tutorials | Free Graphics | Newsletter | Products | Specials | SEO | Sound Effects
Sitemap | Member Perks | Member Login | About BoogieJack.com | Contact | Privacy Policy | Copyright Policy | Links
|