- Description
- This tag is used to describe the scripts, may include the link to the program or its text in certain language. Scripts can be located in the external file and attached to any HTML document. This approach allows using the same functions on many web pages and makes their downloading faster.
- This tag can be located in the title or HTML body in quantity.
-
<script type="..."><!--mce:0--></script> <script src="URL" type="..."><!--mce:1--></script>
- Parametrs
- Defer delays script use until the whole page will be downloaded
- Language defines programming language the script is written in
- Src address of the script from the external file for import to the current document
- Type defines the type of the content of the tag <SCRIPT>
- Closing Tag
- Is optional.
-
The Description of Tag <T> Parameters
- DEFER Tag
- Description
- Delays script use until the whole page will be downloaded. This parameter is supported only by Internet Explorer browser, and in the other cases it will be ignored.
-
<script type="text/javascript"><!--mce:2--></script>
- Arguments
- No
- Default value
- This parameter is disabled by default
- Language parameter
- Description
- Defines the language the script is written in. It is recommended to define this parameter always, because in case the browser does not support programming language, script is ignored.
-
<script type="text/javascript"><!--mce:3--></script>
- Arguments
- Language parameter is not case sensitive and can take one of four values:
- JavaScript JavaScript programming language
- Jscript variant of JavaScript language, which is developed by Microsoft company. The difference is not only in the title, but in approaches.
- VBS, VBScript VBScript programming language, which is based on Visual Basic.
- Default value
- JavaScript
- SRC Parameter
- Description
- Imports file with scripts from external file. As soon as external instructions are downloaded, browser handles them. Files with JavaScript have extention js and can be located in any place.
- The external file after the first access is saved in browser cache and then it downloads faster.
-
<script src="URL"><!--mce:4--></script>
- Arguments
- Full or relative way to the file is accepted as a value. File must have extention .js.
- Default value
- No
- Type parameter
- Description
- Defines MIME type for certain language. Whereas old browser do not support type parameter, you can define two attributes simultaneously – language and type. If the browser supports value of type parameter, value language is canceled.
-
<script type="MIME-тип"><!--mce:5--></script>
- Optional parametr
- Yes
- Arguments
- Type parameter is not case sensitive and accepts the following values:
- Text/javascript for JavaScript programming language
- Text/bscript for VBS language
- Default Value
- Text/javascript
- CODETYPE parameter
- Description
- Informs the browser about the type of the object, which is indicated in classid parameter. Browser can use this information in order to prepare the necessary resources for the file playing. If the codetype parameter is absent, the value of the TYPE attribute is treated.
-
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="100" height="100" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><embed type="application/x-shockwave-flash" width="100" height="100"></embed></object> - Arguments
- The name of MIME type in any case.
- Default value
- No
- DATA Parameter
- Description
- Defines the file which must be displayed in browser window. It is enough for popular formats to indicate the way to the file and its type (type parameter) for downloading and demonstration of the result. It is recommended to enable classid parameter for specific plugins.
- The way to the file is defined according to the folder, which is defined by codebase attribute. If there is no such parameter, you should define the way according to the current document.
-
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="100" height="100" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="URL" /><embed type="application/x-shockwave-flash" width="100" height="100" src="URL"></embed></object> - Arguments
- Full or relative way to the file is accepted as a value.
- Default value
- No
- HEIGHT and WIDTH Parameter
- Description
- HEIGHT parameter defines the height of the object, and width – its width. Not only image itself is a part of defined size, but also control panel, including buttons of play, pause, stop, etc. That is why type of a file and applied plugin have an effect on a size of displayed object.
-
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="height" height="width" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><embed type="application/x-shockwave-flash" width="height" height="width"></embed></object> - Optional parametrs
- Yes
- Arguments
- Any positive integer in pixels or percents
- Default value
- No
- HSPACE and VSPACE Parameter
- Description
- You may define invisible vertical and horizontal indents for any object with the help of hspace and vspace parameters.
-
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="100" height="100" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><embed type="application/x-shockwave-flash" width="100" height="100"></embed></object> - Arguments
- Any positive integer in pixels
- Default value
- 0
- TYPE Parameter
- Description
- Informs the browser about the type of the object, which is indicated in data parameter. Browser can use this information to prepare all the necessary resources for file playing.
-
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="100" height="100" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><embed type="application/x-shockwave-flash" width="100" height="100"></embed></object> - Arguments
- The name of MIME type in any case
- Default value
- No
- File upload form
- CSS forms
- Form builder
- Form creator


