How To Write Scripts

Table of contents:

How To Write Scripts
How To Write Scripts

Video: How To Write Scripts

Video: How To Write Scripts
Video: How to Start Writing your Screenplay 2024, May
Anonim

Scripts are different, you can write them yourself, or you can find ready-made ones on the Internet. When creating a website, the script is written into the source of the page in the form of a code. It is best to use special programs for editing sites.

How to write scripts
How to write scripts

Necessary

program for editing web pages

Instructions

Step 1

Download and install on your computer a program for creating and editing web pages, this will significantly reduce the time to complete the work and make the process much more convenient than using a regular text editor. If you do not often do site editing work, use The Notepad, which is convenient enough to work with code.

Step 2

Open the web page you are editing. Insert the script into its title, into the tag. In some cases, the place where the script is added may vary, it all depends on the specific case. Also note that you also need to register the addresses to the functions that the script you are inserting refers to. In this case, you must have links to all the elements that it uses, otherwise it simply won't work. This is about Java Script.

Step 3

If you edit the page with the addition of a script that is executed on the server, enter it in the page header. Please note that absolutely no tags should be specified in front of it. It should look something like this: Instead of // - // - // write the code of the script you are using.

Step 4

When adding scripts, pay special attention to the absence of unnecessary spaces or punctuation marks. During editing, it is best to start the mode of viewing non-printable characters, so that in the future you do not have to think long about errors in the script. The script you insert must have the.php extension, otherwise it will not work. The script files are always added to the server before being inserted. After inserting the script, send the edited page back to the server.

Recommended: