Home
/
Programming & Design
/
what is a scripting language?? why html is called scripting launguage?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Verified answer
HTML is considered a scripting language because it is used to execute scripts that are interpreted by a program. A scripting language is basically a set of commands that tell a another program what to do (in this instance html tells the browser program what and how to display the webpage). Hopefully that makes sense.
EDIT: I noticed the thumbs down. Do your homework people. I don't consider HTML a scripting language either but it IS in fact a scripting language like it or not.
Is Html A Scripting Language
A scripting language is, according to Wikipedia, "a programming language that supports the writing of scripts, programs written for a software environment that automate the execution of tasks which could alternatively be executed one-by-one by a human operator." Basically, this means that it's a programming language for automating tasks.
HTML (Hypertext Markup Language), however, is not a scripting language, as it does not *do* anything. It is instead, as the acronym suggests, a markup language that describes the layout of a website. The scripting language most often used in web pages is JavaScript, which is responsible for most of the interactivity on a web page.
A scripting language is generally a language that is interpreted and executed directly, instead of being compiled then executed. HTML is not called a scripting language, it's a markup language (this the abbreviation HyperText Markup Language). As opposed to scripting and other languages which are executed by the computer, markup languages are used to describe something.
A scripting language or script language is a programming language that supports the writing of scripts, programs written for a software environment that automate the execution of tasks which could alternatively be executed one-by-one by a human operator. Environments that can be automated through scripting include software applications, web pages within a web browser, the shells of operating systems (OS), and several general purpose and domain-specific languages such as those for embedded systems.
Scripting is usually a property of the primary implementations of a language, rather than a language per se, although many languages are not very suited to this kind of implementation. For example, C++ interpreters do exist, but C++ is generally not considered a scripting language for two reasons: these implementations are rarely used, and the time required to write program in C++ would be far greater than the time required to write an equivalent script in a language like Python.
Typically, a scripting language is characterised by the following properties:
* Ease of use. Scripting languages are intended to be very fast to pick up and author programs in. This generally implies relatively simple syntax and semantics.
* OS facilities - especially filesystem and related, built in with easy interfaces. Scripting is usually aimed at desktops, limiting the portability needs of the pre-built libraries.
* Interpreted from source code - to give the fastest turnaround from script to execution. On a desktop, the performance of even a slow interpreter is often non-problematic. In comparison, non-scripting languages intended for large programs are often precompiled in at least some sense for superior performance.
* Relatively loose structure. It would be difficult to use Java as a scripting language due to the rules about which classes exist in which files - contrast to Python, where it's possible to simply define some functions in a file.
Scripts can be written and executed "on-the-fly", without explicit compile and link steps; they are typically created or modified by the person executing them.[1] A scripting language is usually interpreted from source code or bytecode.[2] By contrast, the software environment the scripts are written for is typically written in a compiled language and distributed in machine code form; the user may not have access to its source code, let alone be able to modify it.
The spectrum of scripting languages ranges from very small and highly domain-specific languages to general-purpose programming languages. The term script is typically reserved for small programs (up to a few thousand lines of code).
Compiled Languages
Computers do not actually understand the code we write. We need to translate our human-readable code to machine-readable code. Our code need to be translated into bits and bytes that can be executed by computers. This translation process is called compilation. Languages that require compilation are called compiled languages. C, C++ and Java are compiled languages.
Scripting Languages
Languages that not require compilation are called scripting languages. Perl, PHP, Python and Ruby are scripting languages. Those languages rely on our source-code all the time. Scripting languages didn’t have compiler or a compilation process. Those languages used interpreters to translate our source-code to machine executable code on the fly.
Compiled Languages vs. Scripting Languages
Mostly, we have been using compiled languages like C, C++, Java and Visual Basic. Java has an interpreter but it need to compile first. Earlier versions of Visual Basic were interpreted. Visual Basic 5 and later came with compiler. So Java and Visual Basic should be called as compiled languages.
Imagine; you wrote an application with Java. Then you compile your application with javac. After compiling completed, you run your application. When running your application, you notice a bug. To fix it, you have to stop your application, go back to source code, fix the bug, wait for the code to recompile, and restart your application to confirm that it is fixed. And if you find another bug, you’ll need to repeat that process again.
In a scripting language, you can fix the bug and just need to reload your application —no need to restart or recompile anymore. It’s as simple as that.
But, the scripting languages have a big performance problem. Translating on the fly can affect the application’s performance. Typically, the pre-compiled code is faster than on the fly translating. But, good news is, there are ways to speed up scripted languages, including techniques such as code caching and persistent interpreters.
In scripting languages, the script is executed directly. This is different from the conventional languages that go through the process of compling, linking (maybe dynamic) that creates a separate "executable".
So scripting languages are simpler to implement in bulk.
OK
HTML is not a scripting lenguage.Java script is a scripting lenguage. Java script adds diffrent types of functions to your webpage..
It is User Interface language. Scripting language is executed directly and execute scripts are interpreted by a program.
For the best answers, search on this site https://shorturl.im/axucY
No HTML is markup language.