
DHTML is NOT a language.
DHTML is a TERM describing the art of making dynamic and interactive web pages.
DHTML combines HTML, JavaScript, DOM, and CSS.
DHTML is NOT a language.
DHTML is a TERM describing the art of making dynamic and interactive web pages.
DHTML combines HTML, JavaScript, DOM, and CSS.
The HTML Document Object Model (HTML DOM) defines a standard way for accessing and manipulating HTML documents.
The DOM presents an HTML document as a tree-structure (a node tree), with elements, attributes, and text.
The DOM is a W3C (World Wide Web Consortium) standard.
The DOM defines a standard for accessing documents like HTML and XML:
"The W3C Document Object Model (DOM) is a platform and language-neutral interface that allows programs and scripts to dynamically access and update the content, structure, and style of a document."
The DOM is separated into 3 different parts / levels:
The DOM defines the objects and properties of all document elements, and the methods (interface) to access them.
The XML DOM defines the objects and properties of all XML elements, and the methods (interface) to access them.
If you want to study the XML DOM, find the XML DOM tutorial on our homepage.
The HTML DOM is:
The HTML DOM defines the objects and properties of all HTML elements, and the methods (interface) to access them.
In other words:
The HTML DOM is a standard for how to get, change, add, or delete HTML elements.
JavaScript is used in millions of Web pages to add functionality, validate forms, detect browsers, and much more.
JavaScript is easy to learn! You will enjoy it!
JavaScript is used in millions of Web pages to improve the design, validate forms, detect browsers, create cookies, and much more.
JavaScript is the most popular scripting language on the internet, and works in all major browsers, such as Internet Explorer, Firefox, and Opera.
Before you continue you should have a basic understanding of the following:
If you want to study these subjects first, find the tutorials .
NO!
Java and JavaScript are two completely different languages in both concept and design!
Java (developed by Sun Microsystems) is a powerful and much more complex programming language - in the same category as C and C++.
JavaScript's official name is "ECMAScript". The standard is developed and maintained by the ECMA organisation.
ECMA-262 is the official JavaScript standard. The standard is based on JavaScript (Netscape) and JScript (Microsoft).
The language was invented by Brendan Eich at Netscape (with Navigator 2.0), and has appeared in all Netscape and Microsoft browsers since 1996.
The development of ECMA-262 started in 1996, and the first edition of was adopted by the ECMA General Assembly in June 1997.
The standard was approved as an international ISO (ISO/IEC 16262) standard in 1998.
The development of the standard is still in progress.
XML stands for EXtensible Markup Language.
XML was designed to transport and store data.
In this tutorial you will learn about XML, and the difference between XML and HTML.
XML is important to know, and very easy to learn.
XML was designed to transport and store data.
HTML was designed to display data.
Before you continue you should have a basic understanding of the following:
If you want to study these subjects first, find the tutorials on our Home page.
XML is not a replacement for HTML.
XML and HTML were designed with different goals:
XML was designed to transport and store data, with focus on what data is.
HTML was designed to display data, with focus on how data looks.
HTML is about displaying information, while XML is about carrying information.
Maybe it is a little hard to understand, but XML does not DO anything. XML was created to structure, store, and transport information.
The following example is a note to Tove from Jani, stored as XML:
|
The note above is quite self descriptive. It has sender and receiver information, it also has a heading and a message body.
But still, this XML document does not DO anything. It is just pure information wrapped in tags. Someone must write a piece of software to send, receive or display it.
XML is nothing special. It is just plain text. Software that can handle plain text can also handle XML.
However, XML-aware applications can handle the XML tags specially. The functional meaning of the tags depends on the nature of the application.
The tags in the example above (like
That is because the XML language has no predefined tags.
The tags used in HTML (and the structure of HTML) are predefined. HTML documents can only use tags defined in the HTML standard (like
,
XML is a complement to HTML.
It is important to understand that XML is not a replacement for HTML. In most web applications, XML is used to transport data, while HTML is used to format and display the data.
My best description of XML is this:
XML is a software and hardware independent tool for carrying information.
The Extensible Markup Language (XML) became a W3C Recommendation 10. February 1998.
We have been participating in XML development since its creation. It has been amazing to see how quickly the XML standard has developed and how quickly a large number of software vendors have adopted the standard.
XML is now as important for the Web as HTML was to the foundation of the Web.
XML is everywhere. It is the most common tool for data transmissions between all sorts of applications, and becomes more and more popular in the area of storing and describing information.
PHP is a powerful server-side scripting language for creating dynamic and interactive websites.
PHP is the widely-used, free, and efficient alternative to competitors such as Microsoft's ASP. PHP is perfectly suited for Web development and can be embedded directly into the HTML code.
The PHP syntax is very similar to Perl and C. PHP is often used together with Apache (web server) on various operating systems. It also supports ISAPI and can be used with Microsoft's IIS on Windows.
A PHP file may contain text, HTML tags and scripts. Scripts in a PHP file are executed on the server.
Before you continue you should have a basic understanding of the following:
If you want to study these subjects first, find the tutorials on our Home page.
This tutorial will not explain how to install PHP, MySQL, or Apache Server.
If your server supports PHP - you don't need to do anything! You do not need to compile anything or install any extra tools - just create some .php files in your web directory - and the server will parse them for you. Most web hosts offer PHP support.
However, if your server does not support PHP, you must install PHP. Below is a link to a good tutorial from PHP.net on how to install PHP5:
http://www.php.net/manual/en/install.php
Download PHP for free here: http://www.php.net/downloads.php
Download Apache for free here: http://httpd.apache.org/download.cgi
A timestamp is the number of seconds since January 1, 1970 at 00:00:00 GMT. This is also known as the Unix Timestamp.
The first parameter in the date() function specifies how to format the date/time. It uses letters to represent date and time formats. Here are some of the letters that can be used:
An overview of all the letters that can be used in the format parameter, can be found in our PHP Date reference.
Other characters, like"/", ".", or "-" can also be inserted between the letters to add additional formatting:
"; |
The output of the code above could be something like this:
2006/07/11 |
The second parameter in the date() function specifies a timestamp. This parameter is optional. If you do not supply a timestamp, the current time will be used.
In our next example we will use the mktime() function to create a timestamp for tomorrow.
The mktime() function returns the Unix timestamp for a specified date.
mktime(hour,minute,second,month,day,year,is_dst) |
To go one day in the future we simply add one to the day argument of mktime():
|
The output of the code above could be something like this:
Tomorrow is 2006/07/12
MySQL is a database. A database defines a structure for storing information.
In a database, there are tables. Just like HTML tables, database tables contain rows, columns, and cells.
Databases are useful when storing information categorically. A company may have a database with the following tables: "Employees", "Products", "Customers" and "Orders".
A database most often contains one or more tables. Each table has a name (e.g. "Customers" or "Orders"). Each table contains records (rows) with data.
Below is an example of a table called "Persons":
LastName | FirstName | Address | City |
---|---|---|---|
Hansen | Ola | Timoteivn 10 | Sandnes |
Svendson | Tove | Borgvn 23 | Sandnes |
Pettersen | Kari | Storgt 20 | Stavanger |
The table above contains three records (one for each person) and four columns (LastName, FirstName, Address, and City).
A query is a question or a request.
With MySQL, we can query a database for specific information and have a recordset returned.
Look at the following query:
SELECT LastName FROM Persons |
The query above selects all the data in the LastName column in the Persons table, and will return a recordset like this:
LastName |
---|
Hansen |
Svendson |
Pettersen |
If you don't have a PHP server with a MySQL Database, you can download MySQL for free here: http://www.mysql.com/downloads/index.html