search engine optimization articles do it yourself seo hiring search engine experts html and search engine optimization web site analysis and submission service

HTML Script Tag Tutorial

Browser Support

Internet Explorer Firefox Opera Safari Chrome

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
var Today = new Date();
var ThisYear = Today.getFullYear();
var DayName = Today.getDate();
document.write("Copyright " + ThisYear);

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.
Back | HTML Tag Chart | HTML Index | Web Design Tutorials
search engine optimization course
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 Newsletter

Subscribe today for exclusive website design tutorials and grab some free gifts to boot! Learn more, or subcribe below:

First Name:

Privacy Policy

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 ]
See my fancy bottom! :)