From the course: PHP with MySQL Essential Training: 1 The Basics
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Create and style the first page
From the course: PHP with MySQL Essential Training: 1 The Basics
Create and style the first page
- In the previous movie, we created the starting structure of the files that we're going to need, the basics of our project. Now, we want to bring those up in a text editor so that we can work with them. For most text editors, you can simply drag the directory onto the icon for the text editor, in order to open up the entire project in a project view all at once. I've already done that here. It works the same way whether you're using TextMate or Sublime or something else. The overall idea is that my project is now visible in one column, I can navigate the files that I want to edit, and I can edit them over in the window on the right. Let's begin by opening up the index.php page. It's immediately inside the public directory. Inside this file, you'll see that I've included a very simple HTML5 template. Nothing special about this. It's just the beginning of an HTML5 document that we could then serve up to the public. PHP pages are just HTML pages that have PHP embedded in them. So this…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.