So now i am learning what is a scripting language?, it is a important question and could be asked in interviews.
scripting language is a programming language that supports writing of scripts, which are programs written for a special run-time environment, that can interpret and execute the automation of tasks, which could alternatively be executed one-by-one by human operator.
Man i had to copy half of this meaning from wikipedia, it is really difficult to remember computer terms.
For a more subtler and simple definition, i am doing a google search . I still cannot find a simple meaning.
Javascript is mainly used by integrating into HTML and CSS. We can use the actions of mouse-click or hover and many more to write javascript and integrate it on client-side calculations or scripting.
So how to insert javascript in html page.
<script>
alert("My first script">
</script>
upto know , what i learned here in this post is executed when the page loads.
But we can execute scripts only when an event occurs,like when an user clicks a button.
We know that hml pages have two main parts, <head> and <body>
the <head> element is a container of all head elements like <title> which shows title of page.
others like <style> <base><link> and <script> and <noscript>
<base> tag can be used, so we can use relative addresses for images or files , because base stores the main address where they are stored.
No comments:
Post a Comment