Posts

Showing posts from December, 2021

Adding JavaScript To HTML Page

 JavaScript is applied to HTML page in a similar manner like CSS. Whereas CSS uses <link> elements to apply external stylesheets and <style> elements to apply internal stylesheets to HTML, JavaScript only needs one friend in the world of HTML, the <script> element. There are three different ways using which user can add JavaScript into webpage. 1. Inline JavaScript 2. Internal JavaScript 3. External JavaScript   Inline JavaScript JavaScript written within the HTML element with the event handling attribute then it is called as inline JavaScript. This method is used when we have to call a function in the HTML event handler attribute. Many cases where we have to add JavaScript directly are onclick, onmouseover, onload etc. In this method, JavaScript can be added in HTML directly without using <script> tag. <HTML> <HEAD> <TITLE>Inline JavaScript</TITLE> <//HEAD> <BODY> <form> <Input type="Button" value="Cli...

JavaScript

Image
 J avaScript is a light weight object oriented programming language used for scripting the webpages. It is an interpreted and full fledge programming language, used primarily by web browsers to provide dynamic and interactive experience for the end-user. Most of the functions and applications that make the Internet indispensable to modern life are coded in some form of JavaScript.  Today, JavaScript can execute not only in the browser, but also on the server, or actually on any device that has a special program called the JavaScript engine. A JavaScript engine is a computer program that executes JavaScript(JS) code. Uses of JavaScript: 1. Adding interactivity to website : If you want a website to be more than a static page of text, you will need to do some Java Scripting. 2. Developing mobile applications : JavaScript isn't just for website, it's used for those applications you have on your phone and tablet as well. 3. Creating web browser-based games : Ever played a game dire...

PHP: Hardware and Software

Image
 T alking to hardware requirements, it has been seen that PHP sucessfully run on 100 MHz Pentinum machine running Linux and Windows NT , respectively. Performance of such machine was fine for use as a personal development environment. A site expected to receive thousands of requests a day would need faster hardware, of course. Although more resources are needed when comparing a PHP-powered site to a flat HTML site, the requirements are not dramatically different. PHP work on any types of hardware whether it is Intel or , Power PC and Sparc CPUs. Regarding to operating system PHP run smoothly on Windows NT and its successors, but later version of PHP requires at least Windows 2008/Vista. For UNIX operating systems, PHP works well with Linux and Solaris, as well as others. If you have chosen a PPC based system such as a Macintosh, you may chooose Linux PPC, a version of Linux. You may pursue the commercial WebTen Web Server that runs in the Macintosh OS. Chad Cunningham has contribut...

PHP

Image
 PHP is a widely used open source general purpose Server side scripting language that is especially suited for web development and can be embedded into HTML. PHP  that earlier stood for Personal Home Pages is a widely used open source general purpose scripting language and so, now known as Hypertext Preprocessor. PHP is typically used as a server side language(as opposed to a language like JavaScript that's generally executed on the client side).                                    PHP is used to develop dynamic websites or web applications. PHP scripts can only be interpreted on a server that has PHP installed. The client computers accessing the PHP scripts require a web browser only. A PHP file contains PHP tags and ends with the extensions ".php". PHP is known as a server sided language. That's because the PHP doesn't get executed on your computer, but on the computer you...