Skip to content

Instantly share code, notes, and snippets.

@anaelleltd
Last active March 17, 2019 11:53
Show Gist options
  • Save anaelleltd/6acbc47bee12a3482b6d6f02e6a9014f to your computer and use it in GitHub Desktop.
Save anaelleltd/6acbc47bee12a3482b6d6f02e6a9014f to your computer and use it in GitHub Desktop.
Main page
Task:
1. Make a simple web site with at least 3 types of pages (you may include a landing page, a gallery page and a contact page).
a. All types shall share a common masthead header, footer and navigation.
2. Make a page controller for each page and set title, heading and other data in variables.
3. Make a master template for every type of page that in turn will include the smaller page parts. (All data can be considered safe
for this exercise, making filtering and escaping unnecessary)
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Strawberries Inc</title>
<link rel="stylesheet" type="text/css" href="css/strawberrystyle.css">
</head>
<body>
<div class="container">
<?php include("content/header.html"); ?>
<?php include("content/nav.html"); ?>
<?php include("content/mainstrawberries.html"); ?>
<?php include("content/footer.html"); ?>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment