HTML Javascript

The javascript creates HTML documents more dynamic.

The HTML <script> is used to define a javascript (clint side script).

script Tag Embedded Code

<script> javascript code... </script>

script Tag Reference a File

<script src="/js/attributes.js"type="text/javascript"></script>


!DOCTYPE html>
    <html lang="en">
        <title>Example of HTML script tag</title>        
        <script type="text/javascript">
            document.write("Hello Elements!");

Click on the "Run This Code" button to see how it works.


Welcome HTML Getting Started HTML Elements HTML Attributes HTML Headings HTML Paragraphs HTML Links HTML Styles HTML Text Formatting HTML Tables HTML Images HTML Forms HTML Lists HTML Iframes HTML Comments HTML CSS HTML Colors HTML Classes HTML Id HTML javascript HTML Filepaths

HTML Advanced

HTML Doctypes HTML Validation HTML Validation HTML URL HTML URL Encode HTML URL Entities HTML Layout HTML Head HTML Meta HTML Scripts HTML Tags

HTML Media

HTML Media HTML Audio HTML Video HTML Plug-ins HTML Youtube

HTML Graphics