basics of website design banner photo

HTML

HTML 5

CSS 2.1

CSS 3

Reference

HTML <script> and <noscript> Elements

The <script> element contains a block of client-side script such as JavaScript or a link to an external script file using the src attribute with a URI.

The type attribute is required to tell the browser the MIME type of the script.

The <noscript> </noscript> element should always be included on a page containg a script in order to provide alternative content for browsers which either don't support scripts or have scripting disabled.

<script> Attributes

  • src - gives the location of the script as a URI.
  • type - gives the content type of the script eg: javascript.
  • charset - gives the character encoding of the content designated by the src attribute.
  • defer - tells the browser that the script is not going to generate any content and processing may be deferred until the page is fully loaded.

HTML 4 Element List