HTML Tutorial Scripts

The <script> tag is required when displaying third party elements such as JavaScript; this tag is most commonly used when placing advertisements within your pages. The script element either contains scripting statements or it points to an external script file through the src attribute.

Code Example:
<script type="text/javascript">
<!—script *** javascript code placed here ***-->

HTML Date and Time Script

The Script beolow will display the current date and time below.

<SCRIPT TYPE="text/javascript">
document.write("right now: " + new Date());

With the popularity of social networking sites many websites offer visitors the option to share the page with their followers on a social networking site, this is done by placing a <scrip> in the source code of their website.  Other script may be script included to your source code after you have created a rollover effect for an image of navigation menu.

comments powered by Disqus