Interactive online courses HTML Academy
2026-03-09 10:47 Diff

Hi, there! Welcome to our team!

We will program in the PHP language. It is what is called a preprocessor language. PHP can be used to assemble pages from pieces, like an erector set. PHP then turns the code of these assembled pages into HTML. This is what is called preprocessing — the page you see has already been processed by PHP on the web server, before it is sent as HTML to your browser. If you have doubts about whether you need PHP, we recommend that you read this article. It explains in detail why this language is so popular.

PHP is convenient for website development because HTML alone does not know how to assemble pages and to automatically change information on them. This is what PHP adds.

If you are not familiar with HTML, take the Introduction to HTML and CSS chapter. This knowledge will come in handy when working with PHP.

In this chapter, we will get to know how PHP works from practical examples. Let’s get started!

We have the main page of our online store. The PHP code that assembles the main page can be found in the editor on the left. The mini-browser on the right displays this page. Delete one line in the editor to see what changes in the mini-browser:

require('components/company_info.php');

We will find out the significance of this line later. For now we can simply delete it!

The mini browser in our interface is the same as the browser on your computer. It allows you to view the web pages that we will work on in the course. Of course, you can’t use it to browse social networks. Rather, it is there to help you gain a thorough knowledge of the programming topics in our course.